From 20f372417cdcd0f1cad761983065d1ad1a97c0a4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 19 Feb 2023 12:13:28 -0800 Subject: build: avoid --enable-gcc-warnings clang-vs-sprintf build failure * configure.ac (WERROR_CFLAGS): Disable -Wdeprecated-declarations to accommodate Apple's clang 14 that's installed as "gcc". --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 1de750bd..528349c6 100644 --- a/configure.ac +++ b/configure.ac @@ -138,6 +138,7 @@ if test $gl_gcc_warnings != no; then gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now gl_WARN_ADD([-Wno-cast-function-type]) # sig-handler.h's sa_handler_t cast + gl_WARN_ADD([-Wno-deprecated-declarations]) # clang complains about sprintf # In spite of excluding -Wlogical-op above, it is enabled, as of # gcc 4.5.0 20090517, and it provokes warnings in cat.c, dd.c, truncate.c -- cgit v1.2.1