From 14e5a0824be096def3da717f68eee85e64a7d0de Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 11 Oct 2017 21:32:32 -0500 Subject: Fix warnings for using C/ObjC specific GCC flags with C++ Closes #3181. --- testsuites/aclocal/prog-cxx.m4 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuites/aclocal/prog-cxx.m4') diff --git a/testsuites/aclocal/prog-cxx.m4 b/testsuites/aclocal/prog-cxx.m4 index 91f2b7fbef..aac9c37f6c 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 -- cgit v1.2.3