From d022da5906e6b286235937e1803f618d063fa356 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 13:22:54 +0100 Subject: [PATCH] Disabled -Wextra as the warning it generates is bengin and fixing it would introduce warnings on other platforms --- examples/osguserdata/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/osguserdata/CMakeLists.txt b/examples/osguserdata/CMakeLists.txt index 0cf0f1203..1e0339aae 100644 --- a/examples/osguserdata/CMakeLists.txt +++ b/examples/osguserdata/CMakeLists.txt @@ -1,4 +1,14 @@ SET(TARGET_SRC osguserdata.cpp) + +################################################################################ +## Quieten warnings that a due to optional code paths + +IF(CMAKE_COMPILER_IS_GNUCXX) + # Remove -Wextra flag as it barfs on ffmoeg headers + STRING(REGEX REPLACE "-Wextra" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") +ENDIF() + + #### end var setup ### SETUP_EXAMPLE(osguserdata)