From 965a4ab5e9acc2235d3c25b6e7ae810f966869f3 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Mon, 4 Nov 2013 22:12:09 +0100 Subject: [PATCH] build: don't warn on unused parameters Signed-off-by: Steve Markgraf --- CMakeLists.txt | 1 + configure.ac | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c459e0a..f0bd92f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,7 @@ include(Version) # setup version info if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32) ADD_DEFINITIONS(-Wall) ADD_DEFINITIONS(-Wextra) + ADD_DEFINITIONS(-Wno-unused-parameter) ADD_DEFINITIONS(-Wno-unused) ADD_DEFINITIONS(-Wsign-compare) #http://gcc.gnu.org/wiki/Visibility diff --git a/configure.ac b/configure.ac index d59d820..66e3233 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ AC_SUBST(SYMBOL_VISIBILITY) AC_MSG_CHECKING(whether compiler understands -Wall) old_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused -Wsign-compare" +CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-unused -Wsign-compare" AC_TRY_COMPILE([],[], AC_MSG_RESULT(yes), AC_MSG_RESULT(no)