build: don't warn on unused parameters

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 11 years ago
parent a1e55db1fe
commit 965a4ab5e9
  1. 1
      CMakeLists.txt
  2. 2
      configure.ac

@ -49,6 +49,7 @@ include(Version) # setup version info
if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32) if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32)
ADD_DEFINITIONS(-Wall) ADD_DEFINITIONS(-Wall)
ADD_DEFINITIONS(-Wextra) ADD_DEFINITIONS(-Wextra)
ADD_DEFINITIONS(-Wno-unused-parameter)
ADD_DEFINITIONS(-Wno-unused) ADD_DEFINITIONS(-Wno-unused)
ADD_DEFINITIONS(-Wsign-compare) ADD_DEFINITIONS(-Wsign-compare)
#http://gcc.gnu.org/wiki/Visibility #http://gcc.gnu.org/wiki/Visibility

@ -61,7 +61,7 @@ AC_SUBST(SYMBOL_VISIBILITY)
AC_MSG_CHECKING(whether compiler understands -Wall) AC_MSG_CHECKING(whether compiler understands -Wall)
old_CFLAGS="$CFLAGS" 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_TRY_COMPILE([],[],
AC_MSG_RESULT(yes), AC_MSG_RESULT(yes),
AC_MSG_RESULT(no) AC_MSG_RESULT(no)

Loading…
Cancel
Save