X-Git-Url: https://git.eyrie.org/?a=blobdiff_plain;f=m4%2Fcc-flags.m4;fp=m4%2Fcc-flags.m4;h=c5a54cbb39c45d8b6ea8358a5025738641871ba8;hb=9a05141d34235444251585cd4bc31a9fc323ddfb;hp=014d0c953a37d1a0a6b35488bf09d5b1787cb4bb;hpb=5e17a82faf4997d2b69e8b7d3a87759569cc1fee;p=kerberos%2Fkrb5-strength.git
diff --git a/m4/cc-flags.m4 b/m4/cc-flags.m4
index 014d0c9..c5a54cb 100644
--- a/m4/cc-flags.m4
+++ b/m4/cc-flags.m4
@@ -1,4 +1,4 @@
-# serial 1
+# serial 2
dnl Check whether the compiler supports particular flags.
dnl
@@ -17,7 +17,7 @@ dnl
dnl The canonical version of this file is maintained in the rra-c-util
dnl package, available at .
dnl
-dnl Copyright 2016-2022 Russ Allbery
+dnl Copyright 2016-2023 Russ Allbery
dnl Copyright 2006, 2009, 2016
dnl by Internet Systems Consortium, Inc. ("ISC")
dnl
@@ -104,6 +104,7 @@ dnl -Wtautological-pointer-compare False positives with for loops
dnl -Wundef Conflicts with Autoconf probe results
dnl -Wunreachable-code Happens with optional compilation
dnl -Wunreachable-code-return Other compilers get confused
+dnl -Wunsafe-buffer-usage Intended for C++, not applicable to C
dnl -Wunused-macros Often used on suppressed branches
dnl -Wused-but-marked-unused Happens a lot with conditional code
dnl
@@ -116,8 +117,8 @@ AC_DEFUN([RRA_PROG_CC_WARNINGS_FLAGS],
[-Weverything -Wno-cast-qual -Wno-disabled-macro-expansion -Wno-padded
-Wno-sign-conversion -Wno-reserved-id-macro -Wno-reserved-identifier
-Wno-tautological-pointer-compare -Wno-undef -Wno-unreachable-code
- -Wno-unreachable-code-return -Wno-unused-macros
- -Wno-used-but-marked-unused],
+ -Wno-unreachable-code-return -Wno-unsafe-buffer-usage
+ -Wno-unused-macros -Wno-used-but-marked-unused],
[RRA_PROG_CC_FLAG(flag,
[WARNINGS_CFLAGS="${WARNINGS_CFLAGS} flag"])])],
[WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror"