Skip to content

Commit b3ce035

Browse files
author
Oscar Fuentes
committed
Copied some flags from the Makefile build to the list of GCC flags.
This removes a lot of warnings. llvm-svn: 116545
1 parent d65c196 commit b3ce035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ configure_file(
4949
if (CMAKE_COMPILER_IS_GNUCXX)
5050
# FIXME: Turn off exceptions, RTTI:
5151
# -fno-exceptions -fno-rtti
52-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings")
52+
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")
5353
endif ()
5454

5555
if (APPLE)

0 commit comments

Comments
 (0)