-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[remove Compiler Warning]: caused by unused Variable in SHTSensor.h #16
Comments
Looks good, thanks for reporting this. While harmless, libraries should not generate warnings. Alternatively, we could used |
Hi thanks for watching 😀. |
It would look like this:
I've briefly tried to recreate the compiler warning in Arduino IDE, but failed to do so. Could you share the setup you used to get this warning so we can verify that it's fixed? Thanks |
Alternatively, we can simply omit the parameter name:
This should fix it too |
Hi Johannes, I use Platform IO where I am able to set the Warning level in GCC compiler like that:
The sesult is like that:
|
I tried to set the warning level in Arduino IDE, but I didn't found where. |
works also fine |
Hi Johannes, Ich nutze folgendes Setup:
Das Ist das normal? |
@hasenradball das ist konsistent mit dem Code wenn ein Sensor-Typ angegeben wird, aber nicht unbedingt sinnvoll. Werde das auch gleich anschauen |
@hasenradball both issues are addressed in pull request #17 |
Thank you :-) |
Hi,
I have a proposal to remove a silly Compiler warning in line 160 of SHTSensor.h:
The text was updated successfully, but these errors were encountered: