From cd68a1c52cd77029d5cb463ed65f10ebe011da6d Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Thu, 17 Jul 2014 16:44:30 +0100 Subject: 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*. --- cores/arduino/Stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp index 39873aa..9c581be 100644 --- a/cores/arduino/Stream.cpp +++ b/cores/arduino/Stream.cpp @@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi // find returns true if the target string is found bool Stream::find(char *target) { - return findUntil(target, ""); + return findUntil(target, (char*)""); } // reads data from the stream until the target string of given length is found -- cgit v1.2.3-18-g5258