ChuckBell / MySQL_Connector_Arduino

Database connector library for using MySQL with your Arduino projects.
332 stars 133 forks source link

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

Open hasenradball opened 2 years ago

hasenradball commented 2 years ago

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;
      |       ^~~~
Sprinkle-Master commented 2 years ago

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