mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-01 19:42:04 +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
611 B
611 B
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
script
Modify patterns_none-cxxflags.txt
patterns to ignore incompatible warning types