[rtems commit] Fix warnings for using C/ObjC specific GCC flags with C++
Joel Sherrill
joel at rtems.org
Thu Oct 12 02:35:03 UTC 2017
Module: rtems
Branch: master
Commit: 14e5a0824be096def3da717f68eee85e64a7d0de
Changeset: http://git.rtems.org/rtems/commit/?id=14e5a0824be096def3da717f68eee85e64a7d0de
Author: Joel Sherrill <joel at rtems.org>
Date: Wed Oct 11 21:32:32 2017 -0500
Fix warnings for using C/ObjC specific GCC flags with C++
Closes #3181.
---
c/src/aclocal/prog-cxx.m4 | 6 ++++++
testsuites/aclocal/prog-cxx.m4 | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/c/src/aclocal/prog-cxx.m4 b/c/src/aclocal/prog-cxx.m4
index 66c986c..e0ae7b4 100644
--- a/c/src/aclocal/prog-cxx.m4
+++ b/c/src/aclocal/prog-cxx.m4
@@ -15,6 +15,12 @@ else
CXXFLAGS=${CXXFLAGS-${CFLAGS}}
fi
+CXXFLAGS=`echo ${CXXFLAGS} | sed \
+ -e s/-Wmissing-prototypes// \
+ -e s/-Wimplicit-function-declaration// \
+ -e s/-Wstrict-prototypes// \
+ -e s/-Wnested-externs//`
+
RTEMS_CHECK_TOOL(CXX,g++)
if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
then
diff --git a/testsuites/aclocal/prog-cxx.m4 b/testsuites/aclocal/prog-cxx.m4
index 91f2b7f..aac9c37 100644
--- a/testsuites/aclocal/prog-cxx.m4
+++ b/testsuites/aclocal/prog-cxx.m4
@@ -15,6 +15,12 @@ else
CXXFLAGS=${CXXFLAGS-${CFLAGS}}
fi
+CXXFLAGS=`echo ${CXXFLAGS} | sed \
+ -e s/-Wmissing-prototypes// \
+ -e s/-Wimplicit-function-declaration// \
+ -e s/-Wstrict-prototypes// \
+ -e s/-Wnested-externs//`
+
RTEMS_CHECK_TOOL(CXX,g++)
if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
then
More information about the vc
mailing list