Remove -Werror=all from build flags, but enable it in CI (#9273)
Fixes: https://github.com/espressif/arduino-esp32/issues/7024
This commit is contained in:
parent
1847723c6e
commit
e5330d1797
2 changed files with 3 additions and 2 deletions
1
.github/scripts/sketch_utils.sh
vendored
1
.github/scripts/sketch_utils.sh
vendored
|
|
@ -161,6 +161,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
|
|||
--fqbn "$currfqbn" \
|
||||
--board-options "$curroptions" \
|
||||
--warnings "all" \
|
||||
--build-property "compiler.warning_flags.all=-Wall -Werror=all -Wextra" \
|
||||
--build-cache-path "$ARDUINO_CACHE_DIR" \
|
||||
--build-path "$build_dir" \
|
||||
$xtra_opts "${sketchdir}"
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ compiler.optimization_flags.debug=-Og -g3
|
|||
compiler.warning_flags=-w
|
||||
compiler.warning_flags.none=-w
|
||||
compiler.warning_flags.default=
|
||||
compiler.warning_flags.more=-Wall -Werror=all
|
||||
compiler.warning_flags.all=-Wall -Werror=all -Wextra
|
||||
compiler.warning_flags.more=-Wall
|
||||
compiler.warning_flags.all=-Wall -Wextra
|
||||
|
||||
# Compile Flags
|
||||
compiler.cpreprocessor.flags="@{compiler.sdk.path}/flags/defines" "-I{build.source.path}" -iprefix "{compiler.sdk.path}/include/" "@{compiler.sdk.path}/flags/includes" "-I{compiler.sdk.path}/{build.memory_type}/include"
|
||||
|
|
|
|||
Loading…
Reference in a new issue