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
I am using this library in a CI (Continuous Integration) workflow. Depending on the compiler settings, some types of warnings are treated as errors. Thus I get the following error:
/home/runner/Arduino/libraries/DistanceSensor_A02YYUW/DistanceSensor_A02YYUW.cpp: In member function 'DistanceSensor_A02YYUW_MEASSUREMENT_STATUS DistanceSensor_A02YYUW::meassure()':
/home/runner/Arduino/libraries/DistanceSensor_A02YYUW/DistanceSensor_A02YYUW.cpp:15:17: error: unused variable 'startTime' [-Werror=unused-variable]
unsigned long startTime = millis();
^~~~~~~~~
/home/runner/Arduino/libraries/DistanceSensor_A02YYUW/DistanceSensor_A02YYUW.cpp: In member function 'void DistanceSensor_A02YYUW::_flushSerialInput()':
/home/runner/Arduino/libraries/DistanceSensor_A02YYUW/DistanceSensor_A02YYUW.cpp:74:17: error: unused variable 'startTime' [-Werror=unused-variable]
unsigned long startTime = millis();
^~~~~~~~~
cc1plus: some warnings being treated as errors
Should be easy to fix...
Best regards
Matthias
The text was updated successfully, but these errors were encountered:
Hi,
I am using this library in a CI (Continuous Integration) workflow. Depending on the compiler settings, some types of warnings are treated as errors. Thus I get the following error:
Should be easy to fix...
Best regards
Matthias
The text was updated successfully, but these errors were encountered: