Przeglądaj źródła

build: Check for -Wformat-security with -Wformat

This flag does not work anymore in gcc 5 w/o also passing -Wformat.
Guillem Jover 11 lat temu
rodzic
commit
4ec629eaee
1 zmienionych plików z 1 dodań i 1 usunięć
  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])