mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CMAKE]
- Don't check for unsupported gcc 4.6 - Disable -Wmaybe-uninitialized. It's just not useful. svn path=/trunk/; revision=59131
This commit is contained in:
parent
2aec6ce58a
commit
cc1996b991
1 changed files with 2 additions and 4 deletions
|
@ -46,12 +46,10 @@ endif()
|
||||||
# Warnings
|
# Warnings
|
||||||
add_compile_flags("-Werror -Wall -Wno-char-subscripts -Wpointer-arith -Wno-multichar -Wno-unused-value")
|
add_compile_flags("-Werror -Wall -Wno-char-subscripts -Wpointer-arith -Wno-multichar -Wno-unused-value")
|
||||||
|
|
||||||
if(GCC_VERSION VERSION_LESS 4.6)
|
if(GCC_VERSION VERSION_LESS 4.7)
|
||||||
add_compile_flags("-Wno-error=uninitialized")
|
add_compile_flags("-Wno-error=uninitialized")
|
||||||
elseif((GCC_VERSION VERSION_GREATER 4.6 OR GCC_VERSION VERSION_EQUAL 4.6) AND GCC_VERSION VERSION_LESS 4.7)
|
|
||||||
add_compile_flags("-Wno-error=unused-but-set-variable -Wno-error=uninitialized")
|
|
||||||
elseif(GCC_VERSION VERSION_EQUAL 4.7 OR GCC_VERSION VERSION_GREATER 4.7)
|
elseif(GCC_VERSION VERSION_EQUAL 4.7 OR GCC_VERSION VERSION_GREATER 4.7)
|
||||||
add_compile_flags("-Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -Wno-error=delete-non-virtual-dtor -Wno-error=narrowing")
|
add_compile_flags("-Wno-error=unused-but-set-variable -Wno-maybe-uninitialized -Wno-error=delete-non-virtual-dtor -Wno-error=narrowing")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ARCH STREQUAL "amd64")
|
if(ARCH STREQUAL "amd64")
|
||||||
|
|
Loading…
Reference in a new issue