mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
1 changed files with 3 additions and 1 deletions
|
@ -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