We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d256a22 commit d282d47Copy full SHA for d282d47
CMakeLists.txt
@@ -91,13 +91,16 @@ endfunction ()
91
92
# Compiler flags common to both C and CXX
93
# Enable -Wall
94
-# GCC-6 added -Wmisleading-indentation to -Wall, skip these for now
95
set (C_CXX_WARNING_FLAGS -Wall
96
- -Wno-misleading-indentation
97
-Wno-strict-aliasing
98
-Wno-deprecated-declarations # Temp fix for MRAA deprecated methods
99
)
100
+# GCC-6 added -Wmisleading-indentation to -Wall, skip these for now
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "6")
101
+ list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
102
+endif ()
103
+
104
# Warnings as errors?
105
if (WERROR)
106
list (APPEND C_CXX_WARNING_FLAGS -Werror)
0 commit comments