summaryrefslogtreecommitdiff
path: root/config-scripts
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-10-18 22:00:43 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-10-18 22:00:43 -0400
commit171b7064c6bed1ca412137bd5b632c1bbc0f9964 (patch)
tree564781a97ebed9580e6d188c6cfcbf03e1126b7a /config-scripts
parente4b72d7ee14d7279f7b0abbe35ff52f5861201e4 (diff)
downloadcups-171b7064c6bed1ca412137bd5b632c1bbc0f9964.tar.gz
Drop -Wno-format-truncation since only newer versions of GCC support it and the configure check has never worked.
Diffstat (limited to 'config-scripts')
-rw-r--r--config-scripts/cups-compiler.m411
1 files changed, 1 insertions, 10 deletions
diff --git a/config-scripts/cups-compiler.m4 b/config-scripts/cups-compiler.m4
index 50f910867..a6923750a 100644
--- a/config-scripts/cups-compiler.m4
+++ b/config-scripts/cups-compiler.m4
@@ -181,17 +181,8 @@ if test -n "$GCC"; then
AC_MSG_RESULT(no))
CFLAGS="$OLDCFLAGS"
- AC_MSG_CHECKING(whether compiler supports -Wno-format-truncation)
- OLDCFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Werror -Wno-format-truncation"
- AC_TRY_COMPILE(,,
- [OPTIM="$OPTIM -Wno-format-truncation"
- AC_MSG_RESULT(yes)],
- AC_MSG_RESULT(no))
- CFLAGS="$OLDCFLAGS"
-
# Additional warning options for development testing...
- if test -d .svn; then
+ if test -d .git; then
OPTIM="-Werror $OPTIM"
fi
fi