Fix warnings
parent
c2411619dd
commit
44b160c2c1
|
|
@ -100,7 +100,8 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
add_link_options(-Wl,--gc-sections)
|
add_link_options(-Wl,--gc-sections)
|
||||||
|
|
||||||
# disable exceptions and related metadata
|
# disable exceptions and related metadata
|
||||||
add_compile_options(-fno-exceptions -fno-unwind-tables -fno-rtti)
|
add_compile_options(-fno-exceptions -fno-unwind-tables)
|
||||||
|
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
|
||||||
add_link_options(-Wl,--defsym,__exidx_start=0,--defsym,__exidx_end=0)
|
add_link_options(-Wl,--defsym,__exidx_start=0,--defsym,__exidx_end=0)
|
||||||
else()
|
else()
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ add_library(
|
||||||
lufa/LUFA/Drivers/USB/Core/Events.c
|
lufa/LUFA/Drivers/USB/Core/Events.c
|
||||||
)
|
)
|
||||||
|
|
||||||
# target_compile_features(LUFA PUBLIC cxx_std_14)
|
target_compile_features(LUFA PUBLIC c_std_11)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue