Skip to content

Commit 113a763

Browse files
committed
fix warning with strict prototypes warnings
1 parent a12806a commit 113a763

File tree

62 files changed

+160
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+160
-111
lines changed

hw/bsp/at32f402_405/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ function(family_configure_example TARGET RTOS)
110110
)
111111
endif ()
112112

113-
114-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
113+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
115114
SKIP_LINTING ON
116115
COMPILE_OPTIONS -w)
116+
117117
# Flashing
118118
family_add_bin_hex(${TARGET})
119119
family_flash_jlink(${TARGET})

hw/bsp/at32f403a_407/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ function(family_configure_example TARGET RTOS)
8484
"LINKER:--config=${LD_FILE_IAR}"
8585
)
8686
endif ()
87-
88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
87+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
8988
SKIP_LINTING ON
9089
COMPILE_OPTIONS -w)
90+
9191
# Flashing
9292
family_add_bin_hex(${TARGET})
9393
family_flash_jlink(${TARGET})

hw/bsp/at32f413/family.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function(family_configure_example TARGET RTOS)
8585
)
8686
endif ()
8787

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
8989
SKIP_LINTING ON
9090
COMPILE_OPTIONS -w)
9191

hw/bsp/at32f415/family.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function(family_configure_example TARGET RTOS)
8585
)
8686
endif ()
8787

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
8989
SKIP_LINTING ON
9090
COMPILE_OPTIONS -w)
9191

hw/bsp/at32f423/family.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function(family_configure_example TARGET RTOS)
8787
)
8888
endif ()
8989

90-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
90+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
9191
SKIP_LINTING ON
9292
COMPILE_OPTIONS -w)
9393

hw/bsp/at32f425/family.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function(family_configure_example TARGET RTOS)
8585
)
8686
endif ()
8787

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
8989
SKIP_LINTING ON
9090
COMPILE_OPTIONS -w)
9191

hw/bsp/at32f435_437/family.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function(family_configure_example TARGET RTOS)
9494
)
9595
endif ()
9696

97-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
97+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
9898
SKIP_LINTING ON
9999
COMPILE_OPTIONS -w)
100100

hw/bsp/broadcom_32bit/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ function(family_configure_example TARGET RTOS)
8888
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
8989
set_source_files_properties(${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes")
9090
endif ()
91-
92-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
91+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
9392
SKIP_LINTING ON
9493
COMPILE_OPTIONS -w)
94+
9595
# Flashing
9696
family_add_bin_hex(${TARGET})
9797
family_flash_jlink(${TARGET})

hw/bsp/broadcom_64bit/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ function(family_configure_example TARGET RTOS)
9393
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
9494
set_source_files_properties(${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes")
9595
endif ()
96-
97-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
96+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
9897
SKIP_LINTING ON
9998
COMPILE_OPTIONS -w)
99+
100100
# Flashing
101101
family_add_bin_hex(${TARGET})
102102
family_flash_jlink(${TARGET})

hw/bsp/ch32v10x/family.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ function(family_configure_example TARGET RTOS)
8787
)
8888
endif ()
8989

90-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
90+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
9191
SKIP_LINTING ON
9292
COMPILE_OPTIONS -w)
93+
9394
# Flashing
9495
family_add_bin_hex(${TARGET})
9596
family_flash_openocd_wch(${TARGET})

0 commit comments

Comments
 (0)