Author: rleigh
Date: Wed Jun 14 20:47:03 2017
New Revision: 1798748
URL: http://svn.apache.org/viewvc?rev=1798748&view=rev
Log:
cmake: Enable extra compiler warnings
Modified:
xerces/c/trunk/CMakeLists.txt
xerces/c/trunk/cmake/XercesWarnings.cmake
Modified: xerces/c/trunk/CMakeLists.txt
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/CMakeLists.txt?rev=1798748&r1=1798747&r2=1798748&view=diff
==============================================================================
--- xerces/c/trunk/CMakeLists.txt (original)
+++ xerces/c/trunk/CMakeLists.txt Wed Jun 14 20:47:03 2017
@@ -90,6 +90,7 @@ set(EXTRA_DIST
)
include(GNUInstallDirs)
+include(XercesWarnings)
include(XercesIncludes)
include(XercesFunctions)
include(XercesDLL)
Modified: xerces/c/trunk/cmake/XercesWarnings.cmake
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/cmake/XercesWarnings.cmake?rev=1798748&r1=1798747&r2=1798748&view=diff
==============================================================================
--- xerces/c/trunk/cmake/XercesWarnings.cmake (original)
+++ xerces/c/trunk/cmake/XercesWarnings.cmake Wed Jun 14 20:47:03 2017
@@ -35,12 +35,22 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(test_flags
-Wall
- -Winline
- -W
- -Wformat-security
- -Wpointer-arith
- -Wdisabled-optimization
- -Wno-unknown-pragmas
+ -Wcast-align
+ -Wcast-qual
+ -Wctor-dtor-privacy
+ -Wextra
+ -Wformat=2
+ -Wimplicit-atomic-properties
+ -Wmissing-declarations
+ -Wno-long-long
+ -Woverlength-strings
+ -Woverloaded-virtual
+ -Wredundant-decls
+ -Wreorder
+ -Wswitch-default
+ -Wunused-variable
+ -Wwrite-strings
+ -Wno-variadic-macros
-fstrict-aliasing)
if(extra-warnings)
list(APPEND test_flags
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]