engine: fix remaining -Wformat=2 and force it to -Werror

This commit is contained in:
Alibek Omarov
2025-03-14 10:06:39 +03:00
parent 91bc372811
commit 1e8e4825fa
2 changed files with 2 additions and 3 deletions

View File

@@ -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 )

View File

@@ -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',