suppress some warnings in zephyr build

This commit is contained in:
hathach
2025-10-14 23:23:23 +07:00
parent 367044e487
commit 6f93feee09
2 changed files with 6 additions and 1 deletions

View File

@ -121,6 +121,11 @@ if (RTOS STREQUAL zephyr)
set(BOARD_ROOT ${TOP}/hw/bsp/${FAMILY})
set(ZEPHYR_BOARD_ALIASES ${CMAKE_CURRENT_LIST_DIR}/zephyr_board_aliases.cmake)
find_package(Zephyr REQUIRED HINTS ${TOP}/zephyr)
list(REMOVE_ITEM WARN_FLAGS_GNU
-Wredundant-decls
-Wundef
-Wcast-align
)
endif ()
#-------------------------------------------------------------

View File

@ -76,7 +76,7 @@ SRC_C += \
INC += \
$(TOP)/$(BOARD_PATH) \
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
$(TOP)/lib/CMSIS_6/CMSIS/Core/Include \
$(TOP)/$(ST_CMSIS)/Include \
$(TOP)/$(ST_HAL_DRIVER)/Inc