one pio scriot to set "C" flags (#20762)

This commit is contained in:
Jason2866 2024-02-19 13:23:38 +01:00 committed by GitHub
parent 5f07afab1b
commit d30c634515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 10 deletions

View File

@ -1,4 +1,7 @@
Import("env")
# General options that are passed to the C++ compiler
env.Append(CXXFLAGS=["-Wno-volatile"])
# General options that are passed to the C compiler (C only; not C++).
env.Append(CFLAGS=["-Wno-discarded-qualifiers", "-Wno-implicit-function-declaration"])
env.Append(CFLAGS=["-Wno-discarded-qualifiers", "-Wno-implicit-function-declaration", "-Wno-incompatible-pointer-types"])

View File

@ -1,7 +0,0 @@
Import("env")
# General options that are passed to the C++ compiler
env.Append(CXXFLAGS=["-Wno-volatile"])
# General options that are passed to the C compiler (C only; not C++).
env.Append(CFLAGS=["-Wno-incompatible-pointer-types"])

View File

@ -81,8 +81,7 @@ lib_ignore = ${esp32_defaults.lib_ignore}
[core32_30_flags]
build_unflags = ${core32_30.build_unflags}
build_flags = ${core32_30.build_flags}
extra_scripts = pre:pio-tools/add_c_flags_ard3.py
${esp32_defaults.extra_scripts}
extra_scripts = ${esp32_defaults.extra_scripts}
lib_extra_dirs = lib/lib_ssl, lib/lib_basic, lib/lib_i2c, lib/lib_div, lib/lib_audio, lib/lib_display, lib/lib_rf, lib/libesp32, lib/libesp32_div, lib/libesp32_lvgl
lib_ignore =
HTTPUpdateServer