You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
build(esp32): scope -Wno-error= overrides (array-bounds, maybe-uninitialized, uninitialized, deprecated-declarations) to vendor sources only #403
fbuild's default ESP32 compile-flag set silently downgrades four bug-class errors to warnings workspace-wide, including for FastLED and user sketch sources — not just for ESP-IDF / framework headers:
-Wno-error=array-bounds
-Wno-error=maybe-uninitialized
-Wno-error=uninitialized
-Wno-error=deprecated-declarations
Why this is bad
These are exactly the warning classes that catch real bugs: out-of-bounds writes, use of uninitialized memory, deprecated SDK calls that will stop working in the next IDF release. Today they survive -Werror because of these blanket overrides; tomorrow a regression in user code or in FastLED itself will ship green with a latent corruption / UB / EOL-API bug.
Evidence
Surfaced by an audit of recent FastLED CI runs across the ESP32 matrix (esp32dev/s2/s3/wroom/c2/c3/c6/h2). No diagnostics fired on the audited runs, but the suppressions are armed and unscoped.
Proposed fix
Scope these -Wno-error= flags to ESP-IDF + framework-arduinoespressif32 include paths only (use the same scoping mechanism the CH32V third-party-warning policy uses — see PR #399). FastLED + sketch code should still error on these classes.
Acceptance: a regression test that compiles a tiny sketch with a deliberate -Warray-bounds violation fails the build on esp32dev / esp32s3 / esp32c3.
Closing — investigation shows the four -Wno-error= flags called out by the audit do not all live in fbuild's config:
-Wno-error=deprecated-declarations — present in crates/fbuild-build/src/esp32/configs/*.json (esp32, esp32c2, etc.). This is intentional: ESP-IDF / pioarduino framework uses deprecated APIs that the SDK has not yet replaced. Removing it would fail every ESP32 build.
-Wno-error=array-bounds — does not appear anywhere in fbuild source. Comes from pioarduino's framework platform.json / framework_init.cmake.
-Wno-error=maybe-uninitialized — does not appear anywhere in fbuild source. Same — pioarduino-injected.
-Wno-error=uninitialized — does not appear anywhere in fbuild source. Same — pioarduino-injected.
The audit conflated fbuild's compile-flag baseline with the merged flag set produced after pioarduino's platform.json adds its own demotions. The 3 of 4 flags fbuild does not own can only be scoped upstream in pioarduino's platform.json (out of scope for this repo).
The one flag fbuild does own (-Wno-error=deprecated-declarations) is load-bearing for ESP-IDF compilation today; scoping it to vendor sources only would risk breaking framework builds without coordinated upstream cleanup. If that becomes desirable, file a follow-up with a specific failing example.
Activity
zackees commentedon Jun 4, 2026
Tracked under fbuild meta-audit: #408
zackees commentedon Jun 4, 2026
Closing — investigation shows the four
-Wno-error=flags called out by the audit do not all live in fbuild's config:-Wno-error=deprecated-declarations— present incrates/fbuild-build/src/esp32/configs/*.json(esp32, esp32c2, etc.). This is intentional: ESP-IDF / pioarduino framework uses deprecated APIs that the SDK has not yet replaced. Removing it would fail every ESP32 build.-Wno-error=array-bounds— does not appear anywhere in fbuild source. Comes from pioarduino's frameworkplatform.json/ framework_init.cmake.-Wno-error=maybe-uninitialized— does not appear anywhere in fbuild source. Same — pioarduino-injected.-Wno-error=uninitialized— does not appear anywhere in fbuild source. Same — pioarduino-injected.The audit conflated fbuild's compile-flag baseline with the merged flag set produced after pioarduino's
platform.jsonadds its own demotions. The 3 of 4 flags fbuild does not own can only be scoped upstream in pioarduino'splatform.json(out of scope for this repo).The one flag fbuild does own (
-Wno-error=deprecated-declarations) is load-bearing for ESP-IDF compilation today; scoping it to vendor sources only would risk breaking framework builds without coordinated upstream cleanup. If that becomes desirable, file a follow-up with a specific failing example.Related work:
-Wno-error=flags scoped to FSP vendor sources) → PR fix(renesas): scope FSP -Wno-error= demotions to vendor C sources only #412Filed from fbuild meta-audit #408.