[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix #5816
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix #5816 |
Date: |
Thu, 01 Aug 2019 10:13:32 +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 b97b12fab fix #5816
b97b12fab is described below
commit b97b12fabb292eab6c31585046fbdec374ab68ad
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Thu Aug 1 10:12:09 2019 +0200
fix #5816
---
configure.ac | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/configure.ac b/configure.ac
index 356f6d0d2..d4636941f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,25 @@ CFLAGS="-Wall $CFLAGS"
AS_IF([gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1],
[CFLAGS="-fno-strict-aliasing $CFLAGS"])
+# A helper which allows us to check cflags if compiler
+AC_DEFUN([CC_CHECK_CFLAGS_SILENT], [
+ AC_CACHE_VAL(AS_TR_SH([cc_cv_cflags_$1]),
+ [ac_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $1"
+ AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])],
+ [eval "AS_TR_SH([cc_cv_cflags_$1])='yes'"],
+ [eval "AS_TR_SH([cc_cv_cflags_$1])='no'"])
+ CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+# We make heavy use of this, llvm/gcc and gcc-9 give warnings so disable.
+CC_CHECK_CFLAGS_SILENT([-Wno-address-of-packed-member],
+ [CFLAGS="-Wno-address-of-packed-member $CFLAGS"])
+
# 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: fix #5816,
gnunet <=