Copied some flags from the Makefile build to the list of GCC flags.

This removes a lot of warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Oscar Fuentes 2010-10-15 00:16:22 +00:00
Родитель c1028f45ea
Коммит 827c573881
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -49,7 +49,7 @@ configure_file(
if (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_COMPILER_IS_GNUCXX)
# FIXME: Turn off exceptions, RTTI: # FIXME: Turn off exceptions, RTTI:
# -fno-exceptions -fno-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 () endif ()
if (APPLE) if (APPLE)