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
12 lines
347 B
Bash
Executable File
12 lines
347 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
root=$(git rev-parse --show-toplevel)
|
|
${CC:-xtensa-lx106-elf-gcc} --help=warnings -Q |\
|
|
grep '\[enabled\]' |\
|
|
grep -v 'return-type' |\
|
|
awk '{print $1}' |\
|
|
sed 's/-W/-Wno-/' |\
|
|
grep -v = |\
|
|
grep -v -f ${root}/tools/warnings/patterns_none-cxxflags.txt |\
|
|
sort -u > ${root}/tools/warnings/none-cxxflags
|