[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: gcc does strange things wit
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: gcc does strange things with -Wno-* |
Date: |
Mon, 09 Sep 2019 14:45:20 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 194b0d568 gcc does strange things with -Wno-*
194b0d568 is described below
commit 194b0d56887f434bae843a66639b055632244812
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Mon Sep 9 14:43:29 2019 +0200
gcc does strange things with -Wno-*
---
configure.ac | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index e0c003ed6..ee85f474e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,18 +85,18 @@ AC_DEFUN([CC_CHECK_CFLAGS_SILENT], [
# CC_CHECK_CFLAG_APPEND(FLAG, [action-if-found], [action-if-not-found])
# Check for CFLAG and appends them to CFLAGS if supported
AC_DEFUN([CC_CHECK_CFLAG_APPEND], [
- AC_CACHE_CHECK([if $CC supports $1 flag],
+ AC_CACHE_CHECK([if $CC supports -Wno-$1 flag],
AS_TR_SH([cc_cv_cflags_$1]),
- CC_CHECK_CFLAGS_SILENT([$1])
+ CC_CHECK_CFLAGS_SILENT([-W$1]) #gcc is stupid. It does not fail with the
-W-no option for backwards compat but then shows the error "in case something
goes wrong".
)
AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
- [CFLAGS="$CFLAGS $1"; $2], [$3])
+ [CFLAGS="$CFLAGS -Wno-$1"; $2], [$3])
])
# We make heavy use of this, llvm/gcc and gcc-9 give warnings so disable.
-CC_CHECK_CFLAG_APPEND([-Wno-address-of-packed-member])
+CC_CHECK_CFLAG_APPEND([address-of-packed-member])
# Use Linux interface name unless the OS has a different preference
DEFAULT_INTERFACE="\"eth0\""
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: gcc does strange things with -Wno-*,
gnunet <=