You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino IDE version: no arduino-ide. arduino-cli version 0.20.1
List the steps to reproduce the problem below:
To reproduce the issue, just compile a sketch which uses this library. Maybe it is required to add -Wall -Wextra, the specific compiler flag seems to be -Wunused-function.
Just opened this issue to let you know about the following compiler warning message:
~/Arduino/libraries/Adafruit_SHTC3/Adafruit_SHTC3.h:51:16: warning: 'uint8_t crc8(const uint8_t*, int)' declared 'static' but never defined [-Wunused-function]
static uint8_t crc8(const uint8_t *data, int len);
Actually, GCC is quite permissive in this case, since we are declaring a crc8() method inside each translation unit, with internal linkage, but then we do not provide its implementation (so this is not what is expected).
There are two possible fixes:
If the crc8() method is "private" to the lib, just remove its declaration from the header.
If it is intended to be publicly accessible, then remove static from both the header and the implementation.
Regards.
The text was updated successfully, but these errors were encountered:
To reproduce the issue, just compile a sketch which uses this library. Maybe it is required to add
-Wall -Wextra
, the specific compiler flag seems to be-Wunused-function
.Just opened this issue to let you know about the following compiler warning message:
Actually, GCC is quite permissive in this case, since we are declaring a
crc8()
method inside each translation unit, with internal linkage, but then we do not provide its implementation (so this is not what is expected).There are two possible fixes:
crc8()
method is "private" to the lib, just remove its declaration from the header.static
from both the header and the implementation.Regards.
The text was updated successfully, but these errors were encountered: