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

John Ralls jralls at code.gnucash.org
Sun Jun 29 09:22:04 EDT 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/4aed8b37 (commit)
	from  https://github.com/Gnucash/gnucash/commit/3b4111c1 (commit)



commit 4aed8b37e1a44d5f7b4e6fc8958801dde306f58c
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jun 29 15:20:20 2014 +0200

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

diff --git a/configure.ac b/configure.ac
index 943a639..36dbd91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"



Summary of changes:
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list