From ff7e889a210d674588cbeca81eb6f562a449564d Mon Sep 17 00:00:00 2001 From: Max Payne Date: Sat, 29 Dec 2018 21:06:23 +0200 Subject: [PATCH] Fix incorrect return value, resulting in compilation error Error in question: ArduinoHttpClient/src/HttpClient.h: In member function 'virtual void HttpClient::flush()': ArduinoHttpClient/src/HttpClient.h:310:50: error: return-statement with a value, in function returning 'void' [-fpermissive] --- src/HttpClient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpClient.h b/src/HttpClient.h index 6dde94f..38fd799 100644 --- a/src/HttpClient.h +++ b/src/HttpClient.h @@ -168,7 +168,7 @@ class HttpClient : public Client /** Send an additional header line. This can only be called in between the calls to beginRequest and endRequest. @param aHeader Header line to send, in its entirety (but without the - trailing CRLF. E.g. "Authorization: Basic YQDDCAIGES" + trailing CRLF. E.g. "Authorization: Basic YQDDCAIGES" */ void sendHeader(const char* aHeader); @@ -307,7 +307,7 @@ class HttpClient : public Client virtual int read(); virtual int read(uint8_t *buf, size_t size); virtual int peek() { return iClient->peek(); }; - virtual void flush() { return iClient->flush(); }; + virtual void flush() { iClient->flush(); }; // Inherited from Client virtual int connect(IPAddress ip, uint16_t port) { return iClient->connect(ip, port); }; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy