Closed
Description
The latest ESP32 BSP (2.0.4) increases the compiler warn level in which causes compilation with this library to fail due to the following errors:
esp32:esp32 2.0.4 /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4
/home/runner/Arduino/libraries/ArduinoHttpClient/src/HttpClient.cpp: In member function 'int HttpClient::startRequest(const char*, const char*, const char*, int, const byte*)':
/home/runner/Arduino/libraries/ArduinoHttpClient/src/HttpClient.cpp:87:61: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
if (!iClient->connect(iServerName, iServerPort) > 0)
^
/home/runner/Arduino/libraries/ArduinoHttpClient/src/HttpClient.cpp:87:17: note: add parentheses around left hand side expression to silence this warning
if (!iClient->connect(iServerName, iServerPort) > 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( )
/home/runner/Arduino/libraries/ArduinoHttpClient/src/HttpClient.cpp:97:[64](https://github.com/brentru/Adafruit_IO_Arduino/runs/7751465143?check_suite_focus=true#step:7:65): error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
if (!iClient->connect(iServerAddress, iServerPort) > 0)
^
/home/runner/Arduino/libraries/ArduinoHttpClient/src/HttpClient.cpp:97:17: note: add parentheses around left hand side expression to silence this warning
if (!iClient->connect(iServerAddress, iServerPort) > 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( )
cc1plus: some warnings being treated as errors
The -Werror=logical-not-parentheses
warning has been fixed in the latest master
branch (here) as of commit 9a5afdf, but this fix has not yet been released.
@per1234 @aentinger - Could you please cut a new release for this library?