Skip to content

Commit ffe39ba

Browse files
committed
cmake: enable warnings for unused const variables
Together with the warnings for unused warnings, we always had warnings for unused constant variables disabled since commit 823c0e9 (Fix broken logic for attr cache invalidation, 2014-04-17). As we have now fixed all occurrences of such variables, we can safely enable those warnings again.
1 parent 2521e11 commit ffe39ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ ELSE ()
229229
ENABLE_WARNINGS(strict-prototypes)
230230
ENABLE_WARNINGS(declaration-after-statement)
231231
ENABLE_WARNINGS(shift-count-overflow)
232-
DISABLE_WARNINGS(unused-const-variable)
232+
ENABLE_WARNINGS(unused-const-variable)
233233
ENABLE_WARNINGS(unused-function)
234234
ENABLE_WARNINGS(format)
235235
ENABLE_WARNINGS(format-security)

0 commit comments

Comments
 (0)