mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
Address some longstanding warnings with printf when building with MinGW's GCC 6 and newer.
Building with said newer versions may fix the -Wodr warning when building for release. git-svn-id: https://svn.eduke32.com/eduke32@6140 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
914762513d
commit
f781f21ccd
7 changed files with 53 additions and 57 deletions
|
@ -356,7 +356,7 @@ int32_t scriptfile_getsymbolvalue(char const *name, int32_t *val)
|
|||
sscanf(name + 2, "%" PRIx64 "", &x);
|
||||
|
||||
if (EDUKE32_PREDICT_FALSE(x > UINT32_MAX))
|
||||
initprintf("warning: number 0x%" PRIx64 " truncated to 32 bits.\n", x);
|
||||
buildprint("warning: number 0x", hex(x), " truncated to 32 bits.\n");
|
||||
|
||||
*val = x;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue