summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2014-12-21 14:38:57 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-01-05 15:35:39 +0100
commitfe082998683334e7f573cfe3876810fb80c5249c (patch)
tree360be971d150041afe6e1e1f4a07c2a06db98e4b /configure
parent2cef68da69a17ed09c313ba3c3850ec1cc0a80e0 (diff)
build: Use -Werror=format-security
Reduce the chance of introducing a class of bugs quite hard to track.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 6648035709..1408689d3b 100755
--- a/configure
+++ b/configure
@@ -4452,6 +4452,7 @@ elif enabled gcc; then
check_cflags -Werror=return-type
check_cflags -Werror=declaration-after-statement
check_cflags -Werror=vla
+ check_cflags -Werror=format-security
enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16