mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-10-24 06:39:07 +02: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:
@@ -52,6 +52,7 @@ if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32)
|
||||
ADD_DEFINITIONS(-Wno-unused-parameter)
|
||||
ADD_DEFINITIONS(-Wno-unused)
|
||||
ADD_DEFINITIONS(-Wsign-compare)
|
||||
ADD_DEFINITIONS(-Wdeclaration-after-statement)
|
||||
#http://gcc.gnu.org/wiki/Visibility
|
||||
add_definitions(-fvisibility=hidden)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user