Skip to content

Commit dbd9b77

Browse files
committed
Merge pull request #2190 from ribbons/compiler-warnings
Fix two compiler warnings generated by updated toolchain
2 parents e5c7cb9 + 61a3558 commit dbd9b77

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

hardware/arduino/avr/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

hardware/arduino/sam/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

libraries/Ethernet/src/utility/socket.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ void flush(SOCKET s) {
319319

320320
uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
321321
{
322-
uint8_t status=0;
323322
uint16_t ret=0;
324323

325324
if (len > W5100.SSIZE)
@@ -335,7 +334,6 @@ uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
335334

336335
while ( (W5100.readSnIR(s) & SnIR::SEND_OK) != SnIR::SEND_OK )
337336
{
338-
status = W5100.readSnSR(s);
339337
if (W5100.readSnIR(s) & SnIR::TIMEOUT)
340338
{
341339
/* in case of igmp, if send fails, then socket closed */

0 commit comments

Comments
 (0)