From 16645b1e256dba40ade6dc67ef97fab2995ee7ec Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 10:21:57 +0100 Subject: [PATCH] Added -Wmaybe-uninitialized -Wextra warnings to GNU CXX build. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c4a8915b..b77552022 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -957,7 +957,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX) SET(OSG_AGGRESSIVE_WARNING_FLAGS -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused) IF(${CMAKE_MAJOR_VERSION} GREATER 2 AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9) - SET(OSG_AGGRESSIVE_WARNING_FLAGS ${OSG_AGGRESSIVE_WARNING_FLAGS} -Wshadow) + SET(OSG_AGGRESSIVE_WARNING_FLAGS ${OSG_AGGRESSIVE_WARNING_FLAGS} -Wshadow -Wmaybe-uninitialized -Wextra) ENDIF() # Previous included -Wformat=2 in OSG_AGGRESSIVE_WARNING_FLAGS but had to remove it due to standard library errors