Explorar o código

build: Check for -Wformat-security with -Wformat

This flag does not work anymore in gcc 5 w/o also passing -Wformat.
Guillem Jover %!s(int64=11) %!d(string=hai) anos
pai
achega
4ec629eaee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      m4/dpkg-compiler.m4

+ 1 - 1
m4/dpkg-compiler.m4

@@ -46,7 +46,7 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [
   DPKG_CHECK_COMPILER_FLAG([-Wno-missing-field-initializers])
   DPKG_CHECK_COMPILER_FLAG([-Wmissing-declarations])
   DPKG_CHECK_COMPILER_FLAG([-Wmissing-format-attribute])
-  DPKG_CHECK_COMPILER_FLAG([-Wformat-security])
+  DPKG_CHECK_COMPILER_FLAG([-Wformat -Wformat-security])
   DPKG_CHECK_COMPILER_FLAG([-Wpointer-arith])
   DPKG_CHECK_COMPILER_FLAG([-Wlogical-op])
   DPKG_CHECK_COMPILER_FLAG([-Wvla])