Closed matthias-bs closed 8 months ago
Logfile: https://app.travis-ci.com/github/matthias-bs/OneWire/builds/255255423 (I hope this is visible to anyone...)
Issue https://github.com/PaulStoffregen/OneWire/issues/74 seems to propose another solution.
@matthias-bs just switch to OneWireNg
@uzi18: Thanks for the proposal! Done!
Is resolved in the master branch by using __attribute__((unused))
.
@PaulStoffregen https://github.com/PaulStoffregen/OneWire/pull/120 seems to do the same thing as this PR proposes. Would it be possible for you or another maintainer to cut a release from master
and close out this PR?
I am using OneWire in a larger project of mine (https://github.com/matthias-bs/BresserWeatherSensorTTN). When I added Travis-CI to improve the quality of my own source code, I came across the following problem:
It seams that the variable
reg
is used in macros on some architectures, but not on ESP32 and ESP8266. The default setting for arduino-ci and other CI implementations based on arduino-cli is to treat unused variables as errors, which breaks my CI test. There does not seem to be an easy way to treat included libraries in a different way than your own code.As a workaround, I added #pragma statements to temporarily switch the compiler to treat the unused variable as warning (just for the offending lines).
Another solution would be to declare the variables only for the architectures which need them.