diff options
author | Joel Sherrill <joel@rtems.org> | 2017-10-11 21:32:32 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-10-11 21:32:32 -0500 |
commit | 14e5a0824be096def3da717f68eee85e64a7d0de (patch) | |
tree | 4a5d229d3b8596bfeea6cf9e3aae3a942d8c1610 | |
parent | Fix spprofiling01 overriding recipe warning (diff) | |
download | rtems-14e5a0824be096def3da717f68eee85e64a7d0de.tar.bz2 |
Fix warnings for using C/ObjC specific GCC flags with C++
Closes #3181.
-rw-r--r-- | c/src/aclocal/prog-cxx.m4 | 6 | ||||
-rw-r--r-- | testsuites/aclocal/prog-cxx.m4 | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/c/src/aclocal/prog-cxx.m4 b/c/src/aclocal/prog-cxx.m4 index 66c986c57d..e0ae7b468a 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 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 |