summaryrefslogtreecommitdiff
path: root/hw/bsp/broadcom_64bit
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/broadcom_64bit
parent4bdd08ed2dacaf22ce2a442f8e13c97b03dfc2cb (diff)
fix lots of warnings for missing-prototypes for irqhandler
Diffstat (limited to 'hw/bsp/broadcom_64bit')
-rw-r--r--hw/bsp/broadcom_64bit/family.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/bsp/broadcom_64bit/family.cmake b/hw/bsp/broadcom_64bit/family.cmake
index 1a088c2c0..e87aaa3a4 100644
--- a/hw/bsp/broadcom_64bit/family.cmake
+++ b/hw/bsp/broadcom_64bit/family.cmake
@@ -93,6 +93,10 @@ 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}