MySQL_Connector_Arduino icon indicating copy to clipboard operation
MySQL_Connector_Arduino copied to clipboard

[MySQL_Packet.cpp]: Compiler Warning unused variable "size"

Open hasenradball opened this issue 4 years ago • 1 comments

Got an compiler warning about a unused variable.

see line 523: https://github.com/ChuckBell/MySQL_Connector_Arduino/blob/d007607b306dde37b591093f9562ed1370cf99d4/src/MySQL_Packet.cpp#L523

could be fixed by: int size __attribute__((unused)) = 0;

.pio\libdeps\esp12e\MySQL Connector Arduino\src\MySQL_Packet.cpp: In member function 'int MySQL_Packet::read_lcb_int(int)':
.pio\libdeps\esp12e\MySQL Connector Arduino\src\MySQL_Packet.cpp:523:7: warning: unused variable 'size' [-Wunused-variable]
  523 |   int size = 0;
      |       ^~~~

hasenradball avatar Nov 21 '21 18:11 hasenradball

Thanks! That seams to have cleared that compiler warning for ESP8266

Sprinkle-Master avatar May 21 '22 17:05 Sprinkle-Master