mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-07-13 21:05:11 +02:00
compile with warnings enabled
This commit is contained in:
@ -38,6 +38,14 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
AC_SUBST(SYMBOL_VISIBILITY)
|
||||
|
||||
AC_MSG_CHECKING(whether compiler understands -Wall)
|
||||
old_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused -Wsign-compare"
|
||||
AC_TRY_COMPILE([],[],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no)
|
||||
CFLAGS="$old_CFLAGS")
|
||||
|
||||
dnl Generate the output
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
|
Reference in New Issue
Block a user