]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
configure: Suppress expected compiler error message
authorFlorian Weimer <fweimer@redhat.com>
Tue, 13 Jun 2017 20:09:59 +0000 (22:09 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 13 Jun 2017 20:24:38 +0000 (22:24 +0200)
ChangeLog
configure
configure.ac

index efc78b5110fb8838502829ae177f57a7f8bccb03..c86ab8781c5d002cd9920bf70d543998b86888bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index ceb53949baaee26bb2124f40f64a95d0fab85434..4c2922d882cd996daa6e522b12ef08c3a3cdc432 100755 (executable)
--- 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)"
index d74bd4490c1b2089dee3918b7d807eb990352805..3f486d6df491c5ec1833ae949e22e6dfbaad4e22 100644 (file)
@@ -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)"