8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Warnings.

This commit is contained in:
asfernandes 2014-02-16 21:52:14 +00:00
parent e3b82996a1
commit 66ed15f026
5 changed files with 14 additions and 3 deletions

View File

@ -1902,7 +1902,7 @@ public:
roles(p),
object(NULL),
users(p),
grantAdminOption(NULL),
grantAdminOption(false),
grantor(NULL)
{
}

View File

@ -46,6 +46,10 @@ public:
// for big- and little-endian machines.
class Packed
{
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunused-private-field"
#endif
#ifdef WORDS_BIGENDIAN
private:
UCHAR bid_number_up; // Upper byte of 40-bit record number
@ -65,6 +69,11 @@ public:
ULONG bid_number; // Lower bytes of 40-bit record number
// or 32-bit temporary ID of blob or array
#endif
#if defined(__GNUC__)
#pragma GCC diagnostic warning "-Wunused-private-field"
#endif
public:
ULONG& bid_temp_id()
{

View File

@ -1151,6 +1151,7 @@ dsc* evlStdMath(thread_db* tdbb, const SysFunction* function, const NestValueArr
break;
default:
fb_assert(0);
return NULL;
}
if (isinf(rc))
@ -2493,6 +2494,7 @@ dsc* evlLnLog10(thread_db* tdbb, const SysFunction* function, const NestValueArr
break;
default:
fb_assert(0);
return NULL;
}
impure->vlu_misc.vlu_double = rc;

View File

@ -1685,7 +1685,7 @@ void blb::put_slice(thread_db* tdbb,
// Make sure relation is scanned
MET_scan_relation(tdbb, relation);
jrd_fld* field;
jrd_fld* field = NULL;
if (n < 0 || !(field = MET_get_field(relation, n))) {
IBERROR(197); // msg 197 field for array not known
}

View File

@ -742,7 +742,7 @@ void EXE_send(thread_db* tdbb, jrd_req* request, USHORT msg, ULONG length, const
if (!(request->req_flags & req_active))
ERR_post(Arg::Gds(isc_req_sync));
const StmtNode* message;
const StmtNode* message = NULL;
const StmtNode* node;
if (request->req_operation != jrd_req::req_receive)