Fix Wno-format-security for nixos gcc9 (#1306)
This commit is contained in:
parent
aaad18eded
commit
9fe4f1193c
1 changed files with 2 additions and 2 deletions
|
@ -158,10 +158,10 @@ add_library(r_433 STATIC
|
|||
)
|
||||
|
||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
||||
set_source_files_properties(mongoose.c PROPERTIES COMPILE_FLAGS "-Wno-format")
|
||||
set_source_files_properties(mongoose.c PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-format-security")
|
||||
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")
|
||||
set_source_files_properties(mongoose.c PROPERTIES COMPILE_FLAGS "-Wno-format-pedantic -Wno-format-security -Wno-large-by-value-copy")
|
||||
endif()
|
||||
|
||||
add_executable(rtl_433 rtl_433.c)
|
||||
|
|
Loading…
Add table
Reference in a new issue