From: Ingo Ruhnke Date: Wed, 30 Jul 2014 03:11:25 +0000 (+0200) Subject: Added -Wno-unused-parameter to disable annoying compiler warning X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3714af4a5351f511cef45c206a33bc7eae3ccaee;p=supertux.git Added -Wno-unused-parameter to disable annoying compiler warning --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 824db540a..1add6ff93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,7 +240,7 @@ IF(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_CXX_FLAGS_PROFILE "-pg" CACHE STRING "Profile flags") SET(CMAKE_C_FLAGS_PROFILE "-pg" CACHE STRING "Profile flags") SET(CMAKE_LD_FLAGS_PROFILE "-lgmon" CACHE STRING "Profile flags") - ADD_DEFINITIONS(-Wall -Wextra -funit-at-a-time) + ADD_DEFINITIONS(-Wall -Wextra -Wno-unused-parameter -funit-at-a-time) IF(WERROR) ADD_DEFINITIONS(-Werror) ELSE(WERROR)