mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[CMAKE] gcc.cmake: '-Wno-unused-const-variable' applies to GCC 6.1+
GCC 4.7.2 logs
'cc1: error: unrecognized command line option "-Wno-unused-const-variable" [-Werror]'
Addendum to 8eb7a1a2f4.
This commit is contained in:
committed by
Thomas Faber
parent
b39c55e5d2
commit
29c1089983
+3
-1
@@ -113,7 +113,9 @@ endif()
|
||||
|
||||
add_compile_flags("-Wall -Wpointer-arith")
|
||||
add_compile_flags("-Wno-char-subscripts -Wno-multichar -Wno-unused-value")
|
||||
add_compile_flags("-Wno-unused-const-variable")
|
||||
if(NOT GCC_VERSION VERSION_LESS 6.1)
|
||||
add_compile_flags("-Wno-unused-const-variable")
|
||||
endif()
|
||||
add_compile_flags("-Wno-unused-local-typedefs")
|
||||
add_compile_flags("-Wno-deprecated")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user