Description
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
void setup() {
// put your setup code here, to run once:
Serial.begin(100000000000000000000000000000000000000000000000);
}
Arduino IDE 1.8.18 gives the warning
...\HelloWorld.ino:3:16: warning: integer constant is too large for its type
Serial.begin(100000000000000000000000000000000000000000000000);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...\HelloWorld.ino: In function 'void setup()':
...\HelloWorld.ino:3:64: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Serial.begin(100000000000000000000000000000000000000000000000);
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
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the latest nightly build
- My request contains all necessary details