summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-15 10:00:14 +0700
committerhathach <[email protected]>2025-10-15 10:00:14 +0700
commitce2dab7fb3a2572fd63e8fdf6682d95d41f59116 (patch)
tree7e1feac0c0953ba510bac2a68e4c86075bd1dbfa /hw
parent4efb17130b96cb213cad79121397c7fb1b78c202 (diff)
more warning fix
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/maxim/family.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/hw/bsp/maxim/family.cmake b/hw/bsp/maxim/family.cmake
index e4b1b2c46..cbfe7c84e 100644
--- a/hw/bsp/maxim/family.cmake
+++ b/hw/bsp/maxim/family.cmake
@@ -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