mirror of
https://github.com/upx/upx
synced 2025-10-05 19:20:23 +08:00
src: silence clang-15 compiler warnings
This commit is contained in:
parent
73c816e468
commit
63298ebd6d
|
@ -131,7 +131,8 @@ if(MSVC)
|
|||
target_compile_options(${t} PRIVATE -DHAVE_STDARG_H -DHAVE_VSNPRINTF -J -W3 ${warn_WX})
|
||||
else()
|
||||
target_compile_options(${t} PRIVATE -DHAVE_STDARG_H -DHAVE_UNISTD_H -DHAVE_VSNPRINTF)
|
||||
target_compile_options(${t} PRIVATE -Wall -Wextra -Wvla ${warn_Werror})
|
||||
# clang-15: -Wno-strict-prototypes is needed to silence the new -Wdeprecated-non-prototype warning
|
||||
target_compile_options(${t} PRIVATE -Wall -Wextra -Wvla -Wno-strict-prototypes ${warn_Werror})
|
||||
endif()
|
||||
|
||||
set(t upx)
|
||||
|
|
|
@ -129,6 +129,7 @@ static int F(Filter *f)
|
|||
#if 0 || defined(TESTING)
|
||||
printf("\ncalls=%d noncalls=%d noncalls2=%d text_size=%x calltrickoffset=%x\n",calls,noncalls,noncalls2,size,cto);
|
||||
#endif
|
||||
UNUSED(noncalls2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -128,6 +128,7 @@ static int F(Filter *f)
|
|||
#if 0 || defined(TESTING)
|
||||
printf("\ncalls=%d noncalls=%d noncalls2=%d text_size=%x calltrickoffset=%x\n",calls,noncalls,noncalls2,size,cto);
|
||||
#endif
|
||||
UNUSED(noncalls2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -254,6 +254,7 @@ static int F(Filter *f)
|
|||
calls,noncalls,noncalls2,size,cto8);
|
||||
printf("CALL/JMP/JCC %d %d %d\n",wtally[0],wtally[1],wtally[2]);
|
||||
#endif
|
||||
UNUSED(noncalls2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@ static int F(Filter *f)
|
|||
#if 0 || defined(TESTING)
|
||||
printf("\ncalls=%d noncalls=%d noncalls2=%d text_size=%x calltrickoffset=%x\n",calls,noncalls,noncalls2,size,cto);
|
||||
#endif
|
||||
UNUSED(noncalls2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user