Skip to content

Commit cc597d5

Browse files
committed
disable warning for startup file
1 parent d55e074 commit cc597d5

File tree

60 files changed

+180
-60
lines changed

Some content is hidden

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

60 files changed

+180
-60
lines changed

hw/bsp/at32f402_405/family.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ function(family_configure_example TARGET RTOS)
111111
endif ()
112112

113113

114-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
114+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
115+
SKIP_LINTING ON
116+
COMPILE_OPTIONS -w)
115117
# Flashing
116118
family_add_bin_hex(${TARGET})
117119
family_flash_jlink(${TARGET})

hw/bsp/at32f403a_407/family.cmake

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

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
89+
SKIP_LINTING ON
90+
COMPILE_OPTIONS -w)
8991
# Flashing
9092
family_add_bin_hex(${TARGET})
9193
family_flash_jlink(${TARGET})

hw/bsp/at32f413/family.cmake

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

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
89+
SKIP_LINTING ON
90+
COMPILE_OPTIONS -w)
8991

9092
# Flashing
9193
family_add_bin_hex(${TARGET})

hw/bsp/at32f415/family.cmake

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

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
89+
SKIP_LINTING ON
90+
COMPILE_OPTIONS -w)
8991

9092
# Flashing
9193
family_add_bin_hex(${TARGET})

hw/bsp/at32f423/family.cmake

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

90-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
90+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
91+
SKIP_LINTING ON
92+
COMPILE_OPTIONS -w)
9193

9294
# Flashing
9395
family_add_bin_hex(${TARGET})

hw/bsp/at32f425/family.cmake

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

88-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
88+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
89+
SKIP_LINTING ON
90+
COMPILE_OPTIONS -w)
8991

9092
# Flashing
9193
family_add_bin_hex(${TARGET})

hw/bsp/at32f435_437/family.cmake

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

97-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
97+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
98+
SKIP_LINTING ON
99+
COMPILE_OPTIONS -w)
98100

99101
# Flashing
100102
family_add_bin_hex(${TARGET})

hw/bsp/broadcom_32bit/family.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ function(family_configure_example TARGET RTOS)
8989
set_source_files_properties(${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes")
9090
endif ()
9191

92-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
92+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
93+
SKIP_LINTING ON
94+
COMPILE_OPTIONS -w)
9395
# Flashing
9496
family_add_bin_hex(${TARGET})
9597
family_flash_jlink(${TARGET})

hw/bsp/broadcom_64bit/family.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ function(family_configure_example TARGET RTOS)
9494
set_source_files_properties(${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes")
9595
endif ()
9696

97-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
97+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
98+
SKIP_LINTING ON
99+
COMPILE_OPTIONS -w)
98100
# Flashing
99101
family_add_bin_hex(${TARGET})
100102
family_flash_jlink(${TARGET})

hw/bsp/ch32v10x/family.cmake

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

90-
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES SKIP_LINTING ON)
90+
set_source_files_properties(${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} PROPERTIES
91+
SKIP_LINTING ON
92+
COMPILE_OPTIONS -w)
9193
# Flashing
9294
family_add_bin_hex(${TARGET})
9395
family_flash_openocd_wch(${TARGET})

0 commit comments

Comments
 (0)