Author: tfaber
Date: Sat Jun 1 16:24:07 2013
New Revision: 59131
URL:
http://svn.reactos.org/svn/reactos?rev=59131&view=rev
Log:
[CMAKE]
- Don't check for unsupported gcc 4.6
- Disable -Wmaybe-uninitialized. It's just not useful.
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=59131&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Sat Jun 1 16:24:07 2013
@@ -46,12 +46,10 @@
# Warnings
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")
-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)
- 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()
if(ARCH STREQUAL "amd64")