]> granicus.if.org Git - clang/commitdiff
Copied some flags from the Makefile build to the list of GCC flags.
authorOscar Fuentes <ofv@wanadoo.es>
Fri, 15 Oct 2010 00:16:22 +0000 (00:16 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Fri, 15 Oct 2010 00:16:22 +0000 (00:16 +0000)
This removes a lot of warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116545 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 854174cd2b1231829c9c8a2bccdae99b268f848e..7f6e811414ec110aaab187bc4f460f4819f2df1b 100644 (file)
@@ -49,7 +49,7 @@ configure_file(
 if (CMAKE_COMPILER_IS_GNUCXX)
   # FIXME: Turn off exceptions, RTTI:
   # -fno-exceptions -fno-rtti
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings")
 endif ()
 
 if (APPLE)