From 267f517b43d8b88de2a57c3de330898d4102d7b4 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Thu, 6 Sep 2012 21:09:36 +0000 Subject: [PATCH] [OPENGL] Silence GCC warning. svn path=/trunk/; revision=57247 --- reactos/dll/opengl/mesa/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/dll/opengl/mesa/CMakeLists.txt b/reactos/dll/opengl/mesa/CMakeLists.txt index 67c461bd9b4..678912ca4be 100644 --- a/reactos/dll/opengl/mesa/CMakeLists.txt +++ b/reactos/dll/opengl/mesa/CMakeLists.txt @@ -14,6 +14,9 @@ include_directories( if(NOT MSVC) add_compile_flags_language("-std=gnu99" "C") 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 add_compile_flags("-ffast-math -fno-builtin-memcmp") else() @@ -32,4 +35,4 @@ add_definitions( # our DBG definitions conflict with mesa source code remove_definitions(-DDBG=1 -DDBG=0) -add_subdirectory(src) \ No newline at end of file +add_subdirectory(src)