Fix warnings for using C/ObjC specific GCC flags with C++

Closes #3181.
This commit is contained in:
Joel Sherrill
2017-10-11 21:32:32 -05:00
parent 871c23caba
commit 14e5a0824b
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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