8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00
This commit is contained in:
robocop 2009-11-01 10:58:16 +00:00
parent 955aae1a49
commit 16361cada8
9 changed files with 25 additions and 25 deletions

View File

@ -216,7 +216,7 @@ namespace
SortedObjectsArray<Signature>& functions,
SortedObjectsArray<Signature>& procedures, bool details)
{
Database* dbb = tdbb->getDatabase();
//Database* dbb = tdbb->getDatabase();
AutoCacheRequest requestHandle(tdbb, drq_l_pkg_funcs, DYN_REQUESTS);
AutoCacheRequest requestHandle2(tdbb, drq_l_pkg_func_args, DYN_REQUESTS);
@ -478,7 +478,7 @@ void CreateAlterPackageNode::execute(thread_db* tdbb, jrd_tra* transaction)
void CreateAlterPackageNode::executeCreate(thread_db* tdbb, jrd_tra* transaction)
{
Attachment* attachment = tdbb->getAttachment();
Database* dbb = tdbb->getDatabase();
//Database* dbb = tdbb->getDatabase();
const MetaName metaName(nameInMetaCharSet(tdbb, name));
executeDdlTrigger(tdbb, transaction, DTW_BEFORE, DDL_TRIGGER_CREATE_PACKAGE, metaName);
@ -527,7 +527,7 @@ void CreateAlterPackageNode::executeCreate(thread_db* tdbb, jrd_tra* transaction
bool CreateAlterPackageNode::executeAlter(thread_db* tdbb, jrd_tra* transaction)
{
Database* dbb = tdbb->getDatabase();
//Database* dbb = tdbb->getDatabase();
const MetaName metaName(nameInMetaCharSet(tdbb, name));
AutoCacheRequest requestHandle(tdbb, drq_m_pkg, DYN_REQUESTS);

View File

@ -75,7 +75,7 @@ DmlNode* DmlNode::pass2(thread_db* tdbb, CompilerScratch* csb, jrd_nod* aNode)
static RegisterNode<IfNode> regIfNode(blr_if);
DmlNode* IfNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb, UCHAR blrOp)
DmlNode* IfNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb, UCHAR /*blrOp*/)
{
IfNode* node = FB_NEW(pool) IfNode(pool);
@ -172,7 +172,7 @@ static RegisterNode<InAutonomousTransactionNode> regInAutonomousTransactionNode(
DmlNode* InAutonomousTransactionNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb,
UCHAR blrOp)
UCHAR /*blrOp*/)
{
InAutonomousTransactionNode* node = FB_NEW(pool) InAutonomousTransactionNode(pool);
@ -746,7 +746,7 @@ jrd_nod* PostEventNode::execute(thread_db* tdbb, jrd_req* request)
static RegisterNode<SavepointNode> regSavepointNode(blr_user_savepoint);
DmlNode* SavepointNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb, UCHAR blrOp)
DmlNode* SavepointNode::parse(thread_db* /*tdbb*/, MemoryPool& pool, CompilerScratch* csb, UCHAR /*blrOp*/)
{
SavepointNode* node = FB_NEW(pool) SavepointNode(pool);
@ -812,13 +812,13 @@ void SavepointNode::genBlr()
}
SavepointNode* SavepointNode::pass1(thread_db* tdbb, CompilerScratch* csb)
SavepointNode* SavepointNode::pass1(thread_db* /*tdbb*/, CompilerScratch* /*csb*/)
{
return this;
}
SavepointNode* SavepointNode::pass2(thread_db* tdbb, CompilerScratch* csb)
SavepointNode* SavepointNode::pass2(thread_db* /*tdbb*/, CompilerScratch* /*csb*/)
{
return this;
}
@ -937,7 +937,7 @@ jrd_nod* SavepointNode::execute(thread_db* tdbb, jrd_req* request)
static RegisterNode<SuspendNode> regSuspendNode(blr_send);
DmlNode* SuspendNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb, UCHAR blrOp)
DmlNode* SuspendNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb, UCHAR /*blrOp*/)
{
SuspendNode* node = FB_NEW(pool) SuspendNode(pool);
@ -1001,7 +1001,7 @@ SuspendNode* SuspendNode::pass2(thread_db* tdbb, CompilerScratch* csb)
// Execute a SEND statement.
jrd_nod* SuspendNode::execute(thread_db* tdbb, jrd_req* request)
jrd_nod* SuspendNode::execute(thread_db* /*tdbb*/, jrd_req* request)
{
switch (request->req_operation)
{

View File

@ -670,7 +670,7 @@ void GEN_expr(CompiledStatement* statement, dsql_nod* node)
void GEN_port(CompiledStatement* statement, dsql_msg* message)
{
thread_db* tdbb = JRD_get_thread_data();
Jrd::Attachment* att = tdbb->getAttachment();
//Jrd::Attachment* att = tdbb->getAttachment();
// if (statement->req_blr_string) {
stuff(statement, blr_message);

View File

@ -131,8 +131,8 @@ bool AggregateRsb::get(thread_db* tdbb, jrd_req* request)
if ((impure->irsb_count = evlGroup(tdbb, request, impure->irsb_count)))
return true;
else
return false;
return false;
}
@ -145,7 +145,7 @@ void AggregateRsb::markRecursive()
// Compute the next aggregated record of a value group. evlGroup is driven by, and returns, a state
// variable. The values of the state are:
//
// 3 Entering EVL group beforing fetching the first record.
// 3 Entering EVL group before fetching the first record.
// 1 Values are pending from a prior fetch
// 2 We encountered EOF from the last attempted fetch
// 0 We processed everything now process (EOF)
@ -159,8 +159,8 @@ USHORT AggregateRsb::evlGroup(thread_db* tdbb, jrd_req* request, USHORT state)
impure_value vtemp;
vtemp.vlu_string = NULL;
jrd_nod* map = aggNode->nod_arg[e_agg_map];
jrd_nod* group = aggNode->nod_arg[e_agg_group];
jrd_nod* const map = aggNode->nod_arg[e_agg_map];
jrd_nod* const group = aggNode->nod_arg[e_agg_group];
jrd_nod** ptr;
const jrd_nod* const* end;

View File

@ -116,13 +116,13 @@ void VirtualTable::erase(thread_db* tdbb, record_param* rpb)
}
void VirtualTable::modify(thread_db* tdbb, record_param* /*org_rpb*/, record_param* /*new_rpb*/)
void VirtualTable::modify(thread_db* /*tdbb*/, record_param* /*org_rpb*/, record_param* /*new_rpb*/)
{
ERR_post(Arg::Gds(isc_read_only));
}
void VirtualTable::store(thread_db* tdbb, record_param* /*rpb*/)
void VirtualTable::store(thread_db* /*tdbb*/, record_param* /*rpb*/)
{
ERR_post(Arg::Gds(isc_read_only));
}

View File

@ -30,7 +30,7 @@ namespace Jrd {
class RecordStream //// TODO: create RecordStream.h
{
public:
RecordStream(RecordSource* aRsb)
explicit RecordStream(RecordSource* aRsb)
: rsb(aRsb)
{
}
@ -40,12 +40,12 @@ public:
}
public:
virtual void findRsbs(StreamStack* streamList, RsbStack* rsbList)
virtual void findRsbs(StreamStack* streamList, RsbStack* /*rsbList*/)
{
streamList->push(rsb->rsb_stream);
}
virtual void invalidate(thread_db* tdbb, record_param* rpb)
virtual void invalidate(thread_db* /*tdbb*/, record_param* rpb)
{
rpb->rpb_number.setValid(false);
}

View File

@ -67,7 +67,7 @@ unsigned WindowRsb::dump(UCHAR* buffer, unsigned bufferLen)
}
void WindowRsb::open(thread_db* tdbb, jrd_req* request)
void WindowRsb::open(thread_db* tdbb, jrd_req* /*request*/)
{
SET_TDBB(tdbb);
@ -87,7 +87,7 @@ void WindowRsb::close(thread_db* tdbb)
}
bool WindowRsb::get(thread_db* tdbb, jrd_req* request)
bool WindowRsb::get(thread_db* tdbb, jrd_req* /*request*/)
{
SET_TDBB(tdbb);

View File

@ -2290,7 +2290,7 @@ static void dyn_user(Global* gbl, const UCHAR** ptr)
*
**************************************/
thread_db* tdbb = JRD_get_thread_data();
Database* const dbb = tdbb->getDatabase();
//Database* const dbb = tdbb->getDatabase();
jrd_tra* const tra = tdbb->getTransaction();
ISC_STATUS_ARRAY status;

View File

@ -4787,7 +4787,7 @@ static jrd_nod* parse_procedure_blr(thread_db* tdbb,
const SLONG length = blob->blb_length + 10;
UCHAR* temp = tmp.getBuffer(length);
const ULONG realLen = BLB_get_data(tdbb, blob, temp, length);
fb_assert(realLen >= length - 10 && realLen <= ULONG(MAX_USHORT));
fb_assert(realLen >= ULONG(length) - 10 && realLen <= ULONG(MAX_USHORT));
tmp.resize(realLen);
}