Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 8d0d3d4

Browse files
committed
Add explicit -Werror=unused-variable
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com> (cherry picked from commit 8295945011025305c97de879173fb9f239d4bb79)
1 parent 0b2e13b commit 8d0d3d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CompilerChecks.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ if (UNIX)
4848
add_c_compiler_flag("-Werror=implicit-int" SUPPORTED_COMPILER_FLAGS)
4949
add_c_compiler_flag("-Wint-conversion" SUPPORTED_COMPILER_FLAGS)
5050
add_c_compiler_flag("-Werror=int-conversion" SUPPORTED_COMPILER_FLAGS)
51+
add_c_compiler_flag("-Werror=unused-variable" SUPPORTED_COMPILER_FLAGS)
5152

5253
check_c_compiler_flag("-Wformat" REQUIRED_FLAGS_WFORMAT)
5354
if (REQUIRED_FLAGS_WFORMAT)

0 commit comments

Comments
 (0)