Skip to content

Commit cd68a1c

Browse files
committed
Cast empty string to char* to fix compiler warning
Stream::find(char *target) passes an empty terminator string to Stream::findUntil(char *target, char *terminator) which caused a compiler warning with the updated toolchain, so cast it to a char*.
1 parent cb4ae51 commit cd68a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
7575
// find returns true if the target string is found
7676
bool Stream::find(char *target)
7777
{
78-
return findUntil(target, "");
78+
return findUntil(target, (char*)"");
7979
}
8080

8181
// reads data from the stream until the target string of given length is found

0 commit comments

Comments
 (0)