Skip to content

Commit 607fb44

Browse files
committed
Remove -Werror=all from build flags, but enable it in CI
Partial fix for espressif#7024
1 parent 03da972 commit 607fb44

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/scripts/sketch_utils.sh

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
148148
--fqbn "$currfqbn" \
149149
--board-options "$curroptions" \
150150
--warnings "all" \
151+
--build-property "compiler.warning_flags.all=-Wall -Werror=all -Wextra" \
151152
--build-cache-path "$ARDUINO_CACHE_DIR" \
152153
--build-path "$build_dir" \
153154
$xtra_opts "${sketchdir}"

platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ compiler.size.cmd={compiler.prefix}size
118118
compiler.warning_flags=-w
119119
compiler.warning_flags.none=-w
120120
compiler.warning_flags.default=
121-
compiler.warning_flags.more=-Wall -Werror=all
122-
compiler.warning_flags.all=-Wall -Werror=all -Wextra
121+
compiler.warning_flags.more=-Wall
122+
compiler.warning_flags.all=-Wall -Wextra
123123

124124
# These can be overridden in platform.local.txt
125125
compiler.c.extra_flags=

0 commit comments

Comments
 (0)