mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +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:
parent
b39c55e5d2
commit
29c1089983
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue