summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2023-02-19 12:13:28 -0800
committerJim Meyering <meyering@meta.com>2023-02-19 12:13:28 -0800
commit20f372417cdcd0f1cad761983065d1ad1a97c0a4 (patch)
tree2e66bd392f6b5503dcfd9e902ddc186ed1dd1959
parent9e4247e10d5eff0787ba2a45f94569c42de7e73e (diff)
downloadgrep-20f372417cdcd0f1cad761983065d1ad1a97c0a4.tar.gz
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".
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
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