having the following error when trying to compile with the latest updates on all boards and libraries:
_Compiling library "Arduino-MAX17055_Driver-master"
"C:\Users\danda\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32-elf-g++" -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER=\"v4.4.6-dirty\"" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS "-IC:\Users\danda\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32/include/newlib/platform_include" "-IC:\Users\danda\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32/include/freertos/include" "-
"C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp" -o "C:\Users\danda\AppData\Local\Temp\arduino_build_879814\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp.o"
In file included from C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp:31:
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master/Arduino-MAX17055_Driver.h:31:16: warning: extra tokens at end of #ifndef directive
ifndef Arduino-MAX17055_Driver.h_h
^
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master/Arduino-MAX17055_Driver.h:32:16: warning: ISO C++11 requires whitespace after the macro name
define Arduino-MAX17055_Driver.h_h
^
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp: In member function 'void MAX17055::writeReg16Bit(uint8_t, uint16_t)':
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp:129:11: error: unused variable 'last_status' [-Werror=unused-variable]
uint8_t last_status = Wire.endTransmission();
^~~
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp: In member function 'uint16_t MAX17055::readReg16Bit(uint8_t)':
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp:137:11: error: unused variable 'last_status' [-Werror=unused-variable]
uint8_t laststatus = Wire.endTransmission(false);
^~~~~~
*wasnt able to paste as code due to some embedded ` marks..
having the following error when trying to compile with the latest updates on all boards and libraries:
_Compiling library "Arduino-MAX17055_Driver-master" "C:\Users\danda\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32-elf-g++" -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER=\"v4.4.6-dirty\"" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS "-IC:\Users\danda\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32/include/newlib/platform_include" "-IC:\Users\danda\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32/include/freertos/include" "- "C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp" -o "C:\Users\danda\AppData\Local\Temp\arduino_build_879814\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp.o" In file included from C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp:31: C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master/Arduino-MAX17055_Driver.h:31:16: warning: extra tokens at end of #ifndef directive
ifndef Arduino-MAX17055_Driver.h_h
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master/Arduino-MAX17055_Driver.h:32:16: warning: ISO C++11 requires whitespace after the macro name
define Arduino-MAX17055_Driver.h_h
C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp: In member function 'void MAX17055::writeReg16Bit(uint8_t, uint16_t)': C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp:129:11: error: unused variable 'last_status' [-Werror=unused-variable] uint8_t last_status = Wire.endTransmission(); ^
~~C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp: In member function 'uint16_t MAX17055::readReg16Bit(uint8_t)': C:\Users\danda\OneDrive\Documents\Arduino\libraries\Arduino-MAX17055_Driver-master\Arduino-MAX17055_Driver.cpp:137:11: error: unused variable 'last_status' [-Werror=unused-variable] uint8_t laststatus = Wire.endTransmission(false); ^~~~~~*wasnt able to paste as code due to some embedded ` marks..