Skip to content

Commit

Permalink
feat(build): enable -Wnull-dereference
Browse files Browse the repository at this point in the history
We get this for free, likely fixed in #627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
  • Loading branch information
Nicholas Sielicki committed Oct 2, 2024
1 parent 1246c4a commit 76893a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ dnl warn if float is implicit promoted to double
picky_compiler_flags="${picky_compiler_flags} -Wdouble-promotion"
dnl warn for potential performance problem casts
picky_compiler_flags="${picky_compiler_flags} -Wcast-align"
dnl warn if a null dereference is detected
picky_compiler_flags="${picky_compiler_flags} -Wnull-dereference"

AC_ARG_ENABLE([picky-compiler],
[AS_HELP_STRING([--disable-picky-compiler], [Disable adding picky compiler flags.])])
Expand Down

0 comments on commit 76893a7

Please sign in to comment.