1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-01 03:47:23 +03:00

Tools - none-cxxflags generator script & enable deprecation warnings (#9245)

* 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
This commit is contained in:
Max Prokhorov
2025-05-20 20:58:32 +03:00
committed by GitHub
parent 2c72e6f015
commit a5f18b5f91
9 changed files with 55 additions and 13 deletions

View File

@ -0,0 +1,11 @@
#!/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