mirror of
https://github.com/reactos/reactos.git
synced 2025-07-02 00:51:23 +00:00
[OPENGL]
Silence GCC warning. svn path=/trunk/; revision=57247
This commit is contained in:
parent
5423c59abe
commit
267f517b43
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,9 @@ include_directories(
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_flags_language("-std=gnu99" "C")
|
add_compile_flags_language("-std=gnu99" "C")
|
||||||
add_compile_flags("-Wno-deprecated-declarations")
|
add_compile_flags("-Wno-deprecated-declarations")
|
||||||
|
if(GCC_VERSION VERSION_EQUAL 4.7 OR GCC_VERSION VERSION_GREATER 4.7)
|
||||||
|
add_compile_flags("-Wno-error=unused-local-typedefs")
|
||||||
|
endif()
|
||||||
# optimizations (builtin memcmp is slow on some gcc versions) used in SConsript files
|
# optimizations (builtin memcmp is slow on some gcc versions) used in SConsript files
|
||||||
add_compile_flags("-ffast-math -fno-builtin-memcmp")
|
add_compile_flags("-ffast-math -fno-builtin-memcmp")
|
||||||
else()
|
else()
|
||||||
|
@ -32,4 +35,4 @@ add_definitions(
|
||||||
# our DBG definitions conflict with mesa source code
|
# our DBG definitions conflict with mesa source code
|
||||||
remove_definitions(-DDBG=1 -DDBG=0)
|
remove_definitions(-DDBG=1 -DDBG=0)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue