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 4, 2024
1 parent 97138e8 commit 88aa018
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 @@ -198,6 +198,8 @@ dnl warn on security issues around functions that format output (ie printf)
ADD_PICKY_FLAGS([-Wformat=2])
dnl warn for potential performance problem casts
ADD_PICKY_FLAGS([-Wcast-align])
dnl warn if a null dereference is detected
ADD_PICKY_FLAGS([-Wnull-dereference])

dnl warn when a case statement is missing a break or a line that contains a
dnl comment before the next case.
Expand Down

0 comments on commit 88aa018

Please sign in to comment.