Skip to content

Commit 01eff68

Browse files
committed
Warn of unused const variables.
This might indicate a table in the inc files is not in use.
1 parent 5058c63 commit 01eff68

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
@@ -36,7 +36,7 @@ project(capstone VERSION ${PROJECT_VERSION_BASE})
3636
# Print the values of PROJECT_VERSION and PROJECT_VERSION_BASE
3737
message(STATUS "PROJECT_VERSION: ${CPACK_PACKAGE_VERSION} CAPSTONE_VERSION: ${PROJECT_VERSION_BASE}")
3838

39-
set(UNIX_COMPILER_OPTIONS -Werror -Wall -Warray-bounds -Wshift-negative-value -Wreturn-type -Wformat -Wmissing-braces -Wunused-function -Warray-bounds -Wunused-variable -Wparentheses -Wint-in-bool-context -Wmisleading-indentation)
39+
set(UNIX_COMPILER_OPTIONS -Werror -Wall -Warray-bounds -Wshift-negative-value -Wreturn-type -Wformat -Wmissing-braces -Wunused-function -Warray-bounds -Wunused-variable -Wparentheses -Wint-in-bool-context -Wmisleading-indentation -Wunused-const-variable=1)
4040

4141
# maybe-uninitialized is only supported by newer versions of GCC.
4242
# Unfortunately, it is pretty unreliable and reports wrong results.

0 commit comments

Comments
 (0)