INN commit: trunk (configure.ac)

INN Commit rra at isc.org
Tue Jan 5 09:55:26 UTC 2021


    Date: Tuesday, January 5, 2021 @ 01:55:26
  Author: iulius
Revision: 10491

Remove -Wredundant-decls on OpenBSD builds with gcc warnings on

On OpenBSD, the system headers contain many redundant declarations.

Modified:
  trunk/configure.ac

--------------+
 configure.ac |    5 +++++
 1 file changed, 5 insertions(+)

Modified: configure.ac
===================================================================
--- configure.ac	2021-01-04 21:14:28 UTC (rev 10490)
+++ configure.ac	2021-01-05 09:55:26 UTC (rev 10491)
@@ -695,6 +695,11 @@
     [INN_PROG_CC_FLAG(flag, [CC_WARNINGS="${CC_WARNINGS} flag"], [])])
 AC_SUBST([CC_WARNINGS])
 
+dnl On OpenBSD, the system headers contain many redundant declarations.
+AS_CASE([$host],
+    [*-openbsd*],
+        [CC_WARNINGS=`echo "$CC_WARNINGS" | sed 's/-Wredundant-decls //'`])
+
 dnl Add hardening build flags, if supported by the compiler.
 AS_IF([test x"$inn_enable_hardening_flags" = xyes],
     [INN_PROG_CC_FLAG([-fPIE], [CFLAGS="${CFLAGS} -fPIE"



More information about the inn-committers mailing list