about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-13 22:09:59 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-13 22:24:38 +0200
commitc2528fef3b05bcffb1ac27c6c09cc3ff24b7f03f (patch)
tree9e296ef903992b729d017359d4b914a6086c0ee3
parentf8bf87face3304f216bcd838081fa33bb4976ac6 (diff)
downloadglibc-c2528fef3b05bcffb1ac27c6c09cc3ff24b7f03f.tar.gz
glibc-c2528fef3b05bcffb1ac27c6c09cc3ff24b7f03f.tar.xz
glibc-c2528fef3b05bcffb1ac27c6c09cc3ff24b7f03f.zip
configure: Suppress expected compiler error message
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure3
-rw-r--r--configure.ac3
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index efc78b5110..c86ab8781c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-06-13  Florian Weimer  <fweimer@redhat.com>
 
+	* configure.ac (find_cxx_header): Suppress compiler error message.
+
+2017-06-13  Florian Weimer  <fweimer@redhat.com>
+
 	* malloc/dynarray-skeleton.c: List begin/end as defined functions.
 	(DYNARRAY_PREFIX##begin, DYNARRAY_PREFIX##end): New functions.
 	* malloc/tst-dynarray-shared.h (CHECK_EMPTY): Add tests for
diff --git a/configure b/configure
index ceb53949ba..4c2922d882 100755
--- a/configure
+++ b/configure
@@ -5337,7 +5337,8 @@ fi
 # copy of those headers in Makerules.
 if test -n "$CXX"; then
   find_cxx_header () {
-    echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "\,$1:,{s/:\$//;p}"
+    echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
+	 | sed -n "\,$1:,{s/:\$//;p}"
   }
   CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
   CXX_CMATH_HEADER="$(find_cxx_header cmath)"
diff --git a/configure.ac b/configure.ac
index d74bd4490c..3f486d6df4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1187,7 +1187,8 @@ AC_SUBST(CXX_SYSINCLUDES)
 # copy of those headers in Makerules.
 if test -n "$CXX"; then
   find_cxx_header () {
-    echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "\,$1:,{s/:\$//;p}"
+    echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
+	 | sed -n "\,$1:,{s/:\$//;p}"
   }
   CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
   CXX_CMATH_HEADER="$(find_cxx_header cmath)"