mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Merge branch '656-format-security' into 'master'
build: Set -Wformat when testing for -Wformat-security Closes #656 See merge request GNOME/glib!300
This commit is contained in:
commit
fd2d94dca5
@ -3408,7 +3408,7 @@ AS_IF([test "x$enable_compile_warnings" != xno], [
|
||||
-Wno-bad-function-cast \
|
||||
-Werror=declaration-after-statement \
|
||||
-Werror=missing-prototypes -Werror=implicit-function-declaration \
|
||||
-Werror=pointer-arith -Werror=init-self -Werror=format-security \
|
||||
-Werror=pointer-arith -Werror=init-self \
|
||||
-Werror=format=2 -Werror=missing-include-dirs])
|
||||
])
|
||||
AC_SUBST(GLIB_WARN_CFLAGS)
|
||||
|
@ -353,7 +353,6 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
'-Wno-bad-function-cast',
|
||||
'-Werror=declaration-after-statement',
|
||||
'-Werror=format=2',
|
||||
'-Werror=format-security',
|
||||
'-Werror=implicit-function-declaration',
|
||||
'-Werror=init-self',
|
||||
'-Werror=missing-include-dirs',
|
||||
|
Loading…
Reference in New Issue
Block a user