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

-Patch cast warnings and add a compiler message.

This commit is contained in:
brodsom 2003-08-10 22:52:48 +00:00
parent 879a669205
commit eda11719e5
2 changed files with 8 additions and 5 deletions

View File

@ -36,7 +36,7 @@
*/
/*
$Id: backup.epp,v 1.26 2003-07-24 10:21:38 aafemt Exp $
$Id: backup.epp,v 1.27 2003-08-10 22:52:48 brodsom Exp $
*/
#include "firebird.h"
@ -3265,7 +3265,8 @@ static void write_generators(void)
PUT_INT64 (att_gen_value_int64, value);
PUT (att_end);
MISC_terminate ( (UCHAR*) X.RDB$GENERATOR_NAME, (UCHAR*) temp, l, sizeof (temp));
BURP_verbose (165, temp, (void*) value, NULL, NULL, NULL);
#pragma FB_COMPILER_MESSAGE("BRS: casting SINT64 to SLONG")
BURP_verbose (165, temp, (void*) (SLONG) value, NULL, NULL, NULL);
/* msg 165 writing generator %s value %ld */
END_FOR;

View File

@ -24,7 +24,7 @@
*
*/
/*
$Id: restore.epp,v 1.32 2003-07-24 10:21:38 aafemt Exp $
$Id: restore.epp,v 1.33 2003-08-10 22:52:48 brodsom Exp $
*/
#include "firebird.h"
@ -6953,7 +6953,8 @@ END_ERROR;
if (!value)
{
BURP_verbose (185, gen_name, (void*) value, NULL_PTR, NULL_PTR, NULL_PTR);
#pragma FB_COMPILER_MESSAGE("BRS: casting SINT64 to SLONG")
BURP_verbose (185, gen_name, (void*) (SLONG) value, NULL_PTR, NULL_PTR, NULL_PTR);
/* msg 185 restoring generator %s value: %ld */
return;
}
@ -7023,7 +7024,8 @@ if (isc_start_request (
/* msg 42 Failed in store_blr_gen_id */
}
BURP_verbose (185, gen_name, (void*) value, NULL_PTR, NULL_PTR, NULL_PTR);
#pragma FB_COMPILER_MESSAGE("BRS: casting SINT64 to SLONG")
BURP_verbose (185, gen_name, (void*) (SLONG) value, NULL_PTR, NULL_PTR, NULL_PTR);
/* msg 185 restoring generator %s value: %ld */
isc_release_request (status_vector,