TheThingsNetwork / arduino-device-lib

Arduino Library for TTN Devices
MIT License
206 stars 96 forks source link

Avoid compiler warning #250

Closed AmedeeBulle closed 5 years ago

AmedeeBulle commented 5 years ago

This is more cosmetic than anything else, but I try to avoid unnecessary compiler warnings in builds.
The unused attributes acknowledges the variable is unused and suppress the warning.

Alternatively we could cast readResponse() to (void) instead of using the length variable...

johanstokking commented 5 years ago

Thanks!

How about not declaring size_t length in the first place?

AmedeeBulle commented 5 years ago

That's the alternative I was suggesting as well...

Updated the MR.