Skip to content
Snippets Groups Projects
Commit 8dec15b0 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

configure: add '-Werror=attributes' to default CFLAGS

Absence of '__attribute__(cleanup)' would lead to memory leaks.
parent 31e6fc3c
No related branches found
No related tags found
No related merge requests found
Pipeline #65241 failed
......@@ -43,7 +43,7 @@ AM_PROG_CC_C_O
AC_PROG_CPP_WERROR
# Set default CFLAGS
CFLAGS="$CFLAGS -Wall -Wshadow -Werror=format-security -Werror=implicit -Wstrict-prototypes"
CFLAGS="$CFLAGS -Wall -Wshadow -Werror=format-security -Werror=implicit -Werror=attributes -Wstrict-prototypes"
AX_CHECK_COMPILE_FLAG("-fpredictive-commoning", [CFLAGS="$CFLAGS -fpredictive-commoning"], [], "-Werror")
AX_CHECK_LINK_FLAG(["-Wl,--exclude-libs,ALL"], [ldflag_exclude_libs="-Wl,--exclude-libs,ALL"], [ldflag_exclude_libs=""], "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment