8000 Remove const variable to avoid -Wvla warnings · sparkfun/arduino-mbed-bridge@89ceeb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89ceeb6

Browse files
committed
Remove const variable to avoid -Wvla warnings
1 parent b54bfcb commit 89ceeb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-implement/HardwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int UART::printf(const char *format, ...){
149149

150150
va_list args;
151151
va_start(args, format);
152-
const int space = vsnprintf(NULL, 0, format, args) + 1;
152+
int space = vsnprintf(NULL, 0, format, args) + 1;
153153
char buf[space];
154154
memset(buf, 0x00, space);
155155
vsnprintf(buf, space, format, args);

0 commit comments

Comments
 (0)
0