Fix compiler warning (#19990)

* Create add_c_flags_ard3.py
This commit is contained in:
Jason2866 2023-11-12 17:42:00 +01:00 committed by GitHub
parent 64f0520b23
commit 5021b917da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

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

View File

@ -0,0 +1,4 @@
Import("env")
# General options that are passed to the C++ compiler
env.Append(CXXFLAGS=["-Wno-volatile"])

View File

@ -80,6 +80,8 @@ 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}
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

View File

@ -8,7 +8,7 @@ custom_unpack_dir = ${common.custom_unpack_dir}
board = esp32
monitor_speed = 115200
upload_resetmethod = ${common.upload_resetmethod}
extra_scripts = ${esp32_defaults.extra_scripts}
extra_scripts = ${core32_30_flags.extra_scripts}
build_unflags = ${core32_30_flags.build_unflags}
build_flags = ${core32_30_flags.build_flags}
lib_ldf_mode = ${common.lib_ldf_mode}