[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 03/264: configure: convert -I to -isystem as a last step
From: |
gnunet |
Subject: |
[gnurl] 03/264: configure: convert -I to -isystem as a last step |
Date: |
Thu, 30 Apr 2020 16:05:06 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 27ea8fc2faa4e4753a9cff0a7f48d1dba68013d6
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Mar 8 11:08:13 2020 +0100
configure: convert -I to -isystem as a last step
As all the -I uses in CFLAGS at that point are for system headers and
third party libraries this helps us remove/ignore warnings on those!
Closes #5060
---
configure.ac | 2 ++
m4/curl-compilers.m4 | 9 ++++-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4f4aeb91b..973394bce 100755
--- a/configure.ac
+++ b/configure.ac
@@ -4259,6 +4259,8 @@ if test "$want_thres" = "yes" && test
"x$USE_THREADS_POSIX" != "x1"; then
fi
fi
+CURL_CONVERT_INCLUDE_TO_ISYSTEM
+
dnl ************************************************************
dnl disable verbose text strings
dnl
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 79460b6d2..196b285be 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -452,8 +452,10 @@ dnl GNUC versions these warnings are not silenced.
AC_DEFUN([CURL_CONVERT_INCLUDE_TO_ISYSTEM], [
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
+ AC_MSG_CHECKING([convert -I options to -isystem])
if test "$compiler_id" = "GNU_C" ||
test "$compiler_id" = "CLANG"; then
+ AC_MSG_RESULT([yes])
tmp_has_include="no"
tmp_chg_FLAGS="$CFLAGS"
for word1 in $tmp_chg_FLAGS; do
@@ -484,6 +486,8 @@ AC_DEFUN([CURL_CONVERT_INCLUDE_TO_ISYSTEM], [
CPPFLAGS="$tmp_chg_FLAGS"
squeeze CPPFLAGS
fi
+ else
+ AC_MSG_RESULT([no])
fi
])
@@ -569,11 +573,6 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
#
if test "$compiler_id" != "unknown"; then
- #
- if test "$compiler_id" = "GNU_C" ||
- test "$compiler_id" = "CLANG"; then
- CURL_CONVERT_INCLUDE_TO_ISYSTEM
- fi
#
tmp_save_CPPFLAGS="$CPPFLAGS"
tmp_save_CFLAGS="$CFLAGS"
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] branch master updated (55ddc6582 -> 7179f6d6c), gnunet, 2020/04/30
- [gnurl] 07/264: smbserver: fix Python version specific ConfigParser import, gnunet, 2020/04/30
- [gnurl] 01/264: configure: document 'compiler_num' for gcc, gnunet, 2020/04/30
- [gnurl] 03/264: configure: convert -I to -isystem as a last step,
gnunet <=
- [gnurl] 02/264: configure: fix -pedantic-errors for GCC 5 and later, gnunet, 2020/04/30
- [gnurl] 04/264: Makefile: run the cd commands in a subshell, gnunet, 2020/04/30
- [gnurl] 06/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 09/264: smbserver: pin Python version to 2 since we are not yet 3 compatible, gnunet, 2020/04/30
- [gnurl] 10/264: impacket: some more Python 3 code compatibility updates, gnunet, 2020/04/30
- [gnurl] 08/264: cleanup: fix some text/comment typos, gnunet, 2020/04/30
- [gnurl] 05/264: tests/data: Fix some XML formatting issues in test cases, gnunet, 2020/04/30
- [gnurl] 11/264: server/getpart: make the "XML-parser" stricter, gnunet, 2020/04/30
- [gnurl] 13/264: easy: Fix curl_easy_duphandle for builds missing IPv6 that use c-ares, gnunet, 2020/04/30
- [gnurl] 17/264: ci/tests: fix and align setting TFLAGS for make test-nonflaky, gnunet, 2020/04/30