mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-11-07 12:19:08 +01:00
cflags: add -Wdeclaration-after-statement
This allows people working on the code to spot the most common error that breaks the MSVC build Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
@@ -62,7 +62,7 @@ AC_SUBST(SYMBOL_VISIBILITY)
|
||||
|
||||
AC_MSG_CHECKING(whether compiler understands -Wall)
|
||||
old_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-unused -Wsign-compare"
|
||||
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-unused -Wsign-compare -Wdeclaration-after-statement"
|
||||
AC_TRY_COMPILE([],[],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no)
|
||||
|
||||
Reference in New Issue
Block a user