gnucash unstable: Another attempt to make Travis's g++ happy about compiler warnings.

John Ralls jralls at code.gnucash.org
Wed Dec 27 00:39:08 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/8ae330c8 (commit)
	from  https://github.com/Gnucash/gnucash/commit/44fc5b05 (commit)



commit 8ae330c804cd1feab5b653dee7c3f7d3c3406e7e
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Dec 26 21:38:59 2017 -0800

    Another attempt to make Travis's g++ happy about compiler warnings.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b84795b..867b577 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -515,7 +515,10 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")  # FIXME: should be -std=
 
 IF (UNIX)
   SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused")
-  SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused")
+  SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wmissing-declarations -Wno-unused")
+  IF (APPLE)
+      SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wmissing-prototypes")
+    ENDIF()
   SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations -std=gnu11")
   SET( CMAKE_C_FLAGS_RELEASE "-O3 ${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2")
 ENDIF (UNIX)



Summary of changes:
 CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list