summaryrefslogtreecommitdiff
path: root/hw/bsp/stm32f3
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-14 20:51:49 +0700
committerhathach <[email protected]>2025-10-14 23:02:32 +0700
commit367044e4873fc9ca9cdac918cee684e1e08216e0 (patch)
tree4ae740db975c5df02ad488f144026150b889796f /hw/bsp/stm32f3
parent4bdd08ed2dacaf22ce2a442f8e13c97b03dfc2cb (diff)
fix lots of warnings for missing-prototypes for irqhandler
Diffstat (limited to 'hw/bsp/stm32f3')
-rw-r--r--hw/bsp/stm32f3/family.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/bsp/stm32f3/family.cmake b/hw/bsp/stm32f3/family.cmake
index 0ba2920d5..b708c667f 100644
--- a/hw/bsp/stm32f3/family.cmake
+++ b/hw/bsp/stm32f3/family.cmake
@@ -89,6 +89,11 @@ function(family_configure_example TARGET RTOS)
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../board.c
)
+
+ if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ set_source_files_properties(${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes")
+ endif ()
+
target_include_directories(${TARGET} PUBLIC
# family, hw, board
${CMAKE_CURRENT_FUNCTION_LIST_DIR}