mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-27 21:16:50 +03:00
Fixing a few compiler warnings to allow compilation with -Wall -Wextra and -Werror. (#3153)
This commit is contained in:
parent
db4d3e0098
commit
2d9e767630
@ -132,7 +132,6 @@ bool HTTPClient::begin(String url)
|
||||
bool HTTPClient::beginInternal(String url, const char* expectedProtocol)
|
||||
{
|
||||
DEBUG_HTTPCLIENT("[HTTP-Client][begin] url: %s\n", url.c_str());
|
||||
bool hasPort = false;
|
||||
clear();
|
||||
|
||||
// check for : (http: or https:
|
||||
|
@ -601,7 +601,7 @@ bool WiFiClientSecure::loadPrivateKey(Stream& stream, size_t size)
|
||||
extern "C" int __ax_port_read(int fd, uint8_t* buffer, size_t count)
|
||||
{
|
||||
ClientContext* _client = SSLContext::getIOContext(fd);
|
||||
if (!_client || _client->state() != ESTABLISHED && !_client->getSize()) {
|
||||
if (!_client || (_client->state() != ESTABLISHED && !_client->getSize())) {
|
||||
errno = EIO;
|
||||
return -1;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@
|
||||
|
||||
#ifndef LWIP_NOASSERT
|
||||
#define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \
|
||||
LWIP_PLATFORM_ASSERT(message); } while(0)
|
||||
{ LWIP_PLATFORM_ASSERT(message); } } while(0)
|
||||
#else /* LWIP_NOASSERT */
|
||||
#define LWIP_ASSERT(message, assertion)
|
||||
#endif /* LWIP_NOASSERT */
|
||||
|
Loading…
x
Reference in New Issue
Block a user