Silence Mongoose compile warnings on gcc
This commit is contained in:
parent
ca844db7e1
commit
7745f1cc95
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ add_executable(rtl_433
|
|||
devices/x10_sec.c
|
||||
)
|
||||
|
||||
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
||||
SET_SOURCE_FILES_PROPERTIES(mongoose.c PROPERTIES COMPILE_FLAGS "-Wno-format")
|
||||
endif()
|
||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||
SET_SOURCE_FILES_PROPERTIES(mongoose.c PROPERTIES COMPILE_FLAGS "-Wno-format-pedantic -Wno-large-by-value-copy")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue