Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5388978

Browse files
committed
fix: prevent unused warning
When NDEBUG is defined and the _Error_Handler() is usedinside a function using function arguments.Ex:void dummy(char *file, uint32_t line) { _Error_Handler(file, line);}Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent000dad7 commit5388978

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎cores/arduino/stm32/stm32_def.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ void SystemClock_Config(void);
133133
#if !defined(_Error_Handler)
134134
#define_Error_Handler(str,value) \
135135
while (1) {\
136+
(void)str;\
137+
(void)value;\
136138
}
137139
#endif
138140
#if !defined(Error_Handler)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp