mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-04 18:03:20 +03:00
* Tools - none-cxxflags generator script GCC10 -> GCC (as in general, not specific to 10) cpp -> cxx to be consistent with gcc terminology grep exclude patterns in a separate file exclude 'deprecated' warnings by default * actually set warnings when compiling --warnings=none is arduino-cli implicit default
12 lines
611 B
Markdown
12 lines
611 B
Markdown
These are the warning options for the compiler at different levels.
|
|
|
|
Because GCC produces code which crashes when a function is declared
|
|
to return a value but doesn't (this is undefined per the C++ specs, but legal
|
|
for C11 and above code as long as the [non]returned value is ignored), we
|
|
cannot warn them if we use "-w" to disable all warnings, and instead have
|
|
to delete every warning but "-Wreturn-type"
|
|
|
|
Generate the C++ variant with the [`make_none-cxxflags.sh`](make_none-cxxflags.sh) script
|
|
|
|
Modify [`patterns_none-cxxflags.txt`](patterns_none-cxxflags.txt) patterns to ignore incompatible warning types
|