more warning fix

This commit is contained in:
hathach
2025-10-15 10:00:14 +07:00
parent 4efb17130b
commit ce2dab7fb3
2 changed files with 8 additions and 5 deletions

View File

@ -34,8 +34,7 @@ family_list = {
"ra": ["arm-gcc"],
"rp2040": ["arm-gcc"],
"rx": ["rx-gcc"],
"samd11 saml2x": ["arm-gcc", "arm-clang"],
"samd21": ["arm-gcc", "arm-clang"],
"samd11 samd2x_l2x": ["arm-gcc", "arm-clang"],
"samd5x_e5x samg": ["arm-gcc", "arm-clang"],
"stm32c0 stm32f0 stm32f1 stm32f2 stm32f3": ["arm-gcc", "arm-clang", "arm-iar"],
"stm32f4": ["arm-gcc", "arm-clang", "arm-iar"],

View File

@ -186,9 +186,13 @@ function(family_configure_example TARGET RTOS)
target_sources(${TARGET} PUBLIC
${TOP}/src/portable/mentor/musb/dcd_musb.c
)
target_compile_options(${TARGET} PRIVATE
-Wno-error=strict-prototypes
)
# warnings caused by MSDK headers
target_compile_options(${TARGET} PRIVATE -Wno-error=strict-prototypes)
if (${MAX_DEVICE} STREQUAL "max78002")
target_compile_options(${TARGET} PRIVATE -Wno-error=redundant-decls)
endif ()
target_link_libraries(${TARGET} PUBLIC board_${BOARD})
# Flashing