diff options
| author | hathach <[email protected]> | 2025-10-28 00:38:34 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-28 11:10:29 +0700 |
| commit | 113a763bc3fe861ac7c20075b2ad29bb51f6fd01 (patch) | |
| tree | aaab97d17689aff79b6b4b0ae2794464701313b3 /hw/bsp/nuc505 | |
| parent | a12806a6cd65b11476cde69628f92f64978f1c64 (diff) | |
fix warning with strict prototypes warnings
Diffstat (limited to 'hw/bsp/nuc505')
| -rw-r--r-- | hw/bsp/nuc505/family.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/bsp/nuc505/family.cmake b/hw/bsp/nuc505/family.cmake index 5fe48e03c..a31f5ff73 100644 --- a/hw/bsp/nuc505/family.cmake +++ b/hw/bsp/nuc505/family.cmake @@ -81,9 +81,13 @@ function(family_configure_example TARGET RTOS) ) endif () - - set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES + 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 -Wno-redundant-decls") + endif () + set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON COMPILE_OPTIONS -w) + family_flash_openocd_nuvoton(${TARGET}) endfunction() |
