mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: fix remaining -Wformat=2 and force it to -Werror
This commit is contained in:
@@ -32,7 +32,7 @@ qboolean Image_LoadPAL( const char *name, const byte *buffer, fs_offset_t filesi
|
||||
|
||||
if( filesize > sizeof( pal ))
|
||||
{
|
||||
Con_DPrintf( S_ERROR "%s: (%s) have invalid size (%li should be less or equal than %d)\n", __func__, name, (long)filesize, sizeof( pal ));
|
||||
Con_DPrintf( S_ERROR "%s: (%s) have invalid size (%li should be less or equal than %zu)\n", __func__, name, (long)filesize, sizeof( pal ));
|
||||
return false;
|
||||
}
|
||||
else if( filesize < sizeof( pal ) && buffer != NULL )
|
||||
|
||||
3
wscript
3
wscript
@@ -333,7 +333,7 @@ def configure(conf):
|
||||
'-Werror=bool-operation',
|
||||
# '-Werror=cast-align=strict',
|
||||
'-Werror=duplicated-cond',
|
||||
'-Werror=format-extra-args',
|
||||
'-Werror=format=2',
|
||||
'-Werror=free-nonheap-object',
|
||||
'-Werror=implicit-fallthrough=2',
|
||||
'-Werror=logical-op',
|
||||
@@ -356,7 +356,6 @@ def configure(conf):
|
||||
|
||||
# unstable diagnostics, may cause false positives
|
||||
'-Walloc-zero',
|
||||
'-Wformat=2',
|
||||
'-Winit-self',
|
||||
'-Wmisleading-indentation',
|
||||
'-Wmismatched-dealloc',
|
||||
|
||||
Reference in New Issue
Block a user