From abafed861cce3ca2222b5871085d7b655a0d434c Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 14 Jul 2014 22:52:15 -0700 Subject: [PATCH] configure: check for -Wformat-security from debian hardening: https://wiki.debian.org/Hardening#DEB_BUILD_HARDENING_FORMAT_.28gcc.2Fg.2B-.2B-_-Wformat_-Wformat-security_-Werror.3Dformat-security.29 Change-Id: I6729fb92e7286532151c2dde93b876476ed2af96 --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 81879a56..2aad24c4 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,7 @@ AC_DEFUN([TEST_AND_ADD_CFLAGS], TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wall]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wdeclaration-after-statement]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wextra]) +TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wformat-security]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-declarations]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wmissing-prototypes]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wold-style-definition])