Skip to content

Commit

Permalink
Add -Warray-bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Apr 10, 2024
1 parent 445b168 commit a5ea0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ project(capstone
VERSION 5.0
)

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

# maybe-unitialzied is only supported by newer versions of GCC.
# Unfortunately, it is pretty unreliable and reports wrong results.
Expand Down

0 comments on commit a5ea0f9

Please sign in to comment.