Skip to content

Commit

Permalink
Fixing a few compiler warnings to allow compilation with -Wall -Wextr…
Browse files Browse the repository at this point in the history
…a and -Werror. (#3153)
  • Loading branch information
trygvis authored and igrr committed May 8, 2017
1 parent db4d3e0 commit 2d9e767
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/WiFiClientSecure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/sdk/lwip/include/lwip/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2d9e767

Please sign in to comment.