Don't try to use -Wno-deprecated-register with Clang.

It doesn't work.
This commit is contained in:
John Ralls 2014-06-29 15:20:20 +02:00
parent 3b4111c16d
commit 4aed8b37e1

View File

@ -1320,7 +1320,11 @@ then
#We have a lot of unused variables. Don't warn until someone gets
#around to cleaning them up.
AM_CFLAGS="${AM_CFLAGS} -Wno-unused"
AM_CXXFLAGS="${AM_CXXFLAGS} -Wno-unused -Wno-deprecated-register"
if [[ "x$ac_cv_CLANG" = "xyes" ]]; then
AM_CXXFLAGS="${AM_CXXFLAGS} -Wno-unused"
else
AM_CXXFLAGS="${AM_CXXFLAGS} -Wno-unused -Wno-deprecated-register"
fi
# other flags...
# These next two are included in the GNOME_COMPILE_WARNINGS
#warnFLAGS="${warnFLAGS} -Wmissing-prototypes"