mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 14:03:03 +01:00
Fix linux warnings Wformat (#8361)
* Fix linux warnings Wformat * Remove duplication defines
This commit is contained in:
parent
566bebf2d5
commit
3bdaddfb5c
@ -975,7 +975,7 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
sprintf(s, "unknown ISC error %ld", (SLONG) code); // TXNN
|
sprintf(s, "unknown ISC error %" SLONGFORMAT, (SLONG) code); // TXNN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1000,11 +1000,11 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case isc_arg_dos:
|
case isc_arg_dos:
|
||||||
sprintf(s, "unknown dos error %ld", (SLONG) code); // TXNN
|
sprintf(s, "unknown dos error %" SLONGFORMAT, (SLONG) code); // TXNN
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case isc_arg_next_mach:
|
case isc_arg_next_mach:
|
||||||
sprintf(s, "next/mach error %ld", (SLONG) code); // AP
|
sprintf(s, "next/mach error %" SLONGFORMAT, (SLONG) code); // AP
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case isc_arg_win32:
|
case isc_arg_win32:
|
||||||
@ -1016,7 +1016,7 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
|
|||||||
s, bufsize, NULL))
|
s, bufsize, NULL))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
sprintf(s, "unknown Win32 error %ld", (SLONG) code); // TXNN
|
sprintf(s, "unknown Win32 error %" SLONGFORMAT, (SLONG) code); // TXNN
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user