-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Set warnings to "default" by default #1792
Comments
Thanks for your suggestion @roboter-basteln.
This is actually a bug in Arduino IDE 1.x. After a fresh installation, the preferences are uninitialized. This state causes no warning flags to be added to the compilation commands. You can verify this by performing the following procedure:
You will now see that no warnings are printed, as would be expected with a "Compiler warnings" preference setting of "None". This is because the https://github.com/arduino/ArduinoCore-avr/blob/1.8.6/platform.txt#L15
So we can not use Arduino IDE 1.x's behavior as an argument in favor of your proposal, but that does not invalidate the proposal. Related (but to be evaluated and implemented independently): arduino/arduino-cli#684 |
@per1234 Thank you for the detailed feedback. I appreciate that someone cares. |
Closing as duplicate of #1630 |
Describe the request
I'd appreciate if the warning level would be set to "default" after a fresh installation, so that it produces similar warnings as Arduino IDE version 1.
Describe the current behavior
Currently, the warning level is set to "none" after a fresh install, not producing any warning.
With the code
Arduino IDE 1.8.18 gives the warning
when set to warning level "none", while Arduino IDE 2.0.4 does not give any warnings.
Arduino IDE version
2.0.4-nightly-20221229
Operating system
Windows
Operating system version
Windows 10 22H2
Additional context
I am working with children at the age of 10, who like experimenting much. It's not uncommon to see such high baud rates. Children love huge numbers. I'd prefer if they get some warnings when they compile their code.
Probably not much different for adults. They should get some warnings, too. You don't want to rely on undefined behavior.
Issue checklist
The text was updated successfully, but these errors were encountered: