Skip to content

Commit 55227a6

Browse files
committed
fix more warnings
1 parent 53deb6c commit 55227a6

File tree

15 files changed

+14
-12
lines changed

15 files changed

+14
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ latex
2020
*.ewt
2121
*.ewd
2222
*.hex
23+
.venv/
2324
cmake_install.cmake
2425
CMakeCache.txt
2526
settings/

examples/device/net_lwip_webserver/skip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ board:frdm_kl25z
2121
# lpc55 has weird error 'ncm_interface' causes a section type conflict with 'ntb_parameters'
2222
family:lpc55
2323
family:nuc126
24+
family:nuc100_120

hw/bsp/kinetis_k/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
159159

160160
#ifdef __clang__
161161
void _exit (int __status) {
162+
(void) __status;
162163
while (1) {}
163164
}
164165
#endif

hw/bsp/kinetis_k32l2/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ TU_ATTR_UNUSED void _start(void) {
167167

168168
#ifdef __clang__
169169
void _exit (int __status) {
170+
(void) __status;
170171
while (1) {}
171172
}
172173
#endif

hw/bsp/kinetis_kl/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
159159

160160
#ifdef __clang__
161161
void _exit (int __status) {
162+
(void) __status;
162163
while (1) {}
163164
}
164165
#endif

hw/bsp/lpc17/family.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ void board_init(void) {
9696
// 0x1B // Host + Device + OTG + AHB
9797
};
9898

99-
uint32_t const clk_en = CFG_TUD_ENABLED ? USBCLK_DEVCIE : USBCLK_HOST;
99+
#if CFG_TUD_ENABLED
100+
uint32_t const clk_en = USBCLK_DEVCIE;
101+
#else
102+
uint32_t const clk_en = USBCLK_HOST;
103+
#endif
100104

101105
LPC_USB->OTGClkCtrl = clk_en;
102106
while ((LPC_USB->OTGClkSt & clk_en) != clk_en) {}

hw/bsp/lpc51/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ TU_ATTR_UNUSED void _start(void) {
138138

139139
#ifdef __clang__
140140
void _exit (int __status) {
141+
(void) __status;
141142
while (1) {}
142143
}
143144
#endif

hw/bsp/lpc54/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ TU_ATTR_UNUSED void _start(void) {
233233

234234
#ifdef __clang__
235235
void _exit (int __status) {
236+
(void) __status;
236237
while (1) {}
237238
}
238239
#endif

hw/bsp/lpc55/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ TU_ATTR_UNUSED void _start(void) {
333333

334334
#ifdef __clang__
335335
void _exit (int __status) {
336+
(void) __status;
336337
while (1) {}
337338
}
338339
#endif

hw/bsp/nuc100_120/boards/nutiny_sdk_nuc120/board.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC120LE3)
22
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc120_flash.ld)
33

44
function(update_board TARGET)
5-
target_compile_definitions(${TARGET} PUBLIC
6-
)
75
endfunction()

0 commit comments

Comments
 (0)