Skip to content

Macro hygiene: FASTLED_OVERCLOCK redefined in Overclock.ino + #warning A3/A4 in ui_state.cpp (fires on every board) #2728

Closed

Description

@zackees

Summary

Two warning classes fire on every FastLED CI workflow (50+ boards) — pure macro hygiene with simple fixes:

#1. FASTLED_OVERCLOCK redefined

warning: FASTLED_OVERCLOCK redefined
  examples/Overclock/Overclock.ino:17  ->  #define FASTLED_OVERCLOCK 1.1
note: this is the location of the previous definition
  src/fl/chipsets/led_timing.h:40       ->  #define FASTLED_OVERCLOCK 1.0

Fix: Wrap the default in led_timing.h with the standard tunable-macro idiom:

#ifndef FASTLED_OVERCLOCK
#define FASTLED_OVERCLOCK 1.0
#endif

#2. #warning "A3 / A4 is not defined, using 3 / 4"

warning: #warning A3 is not defined, using 3 [-Wcpp]
  src/sketch/arduino/ui_state.cpp:17

warning: #warning A4 is not defined, using 4 [-Wcpp]
  src/sketch/arduino/ui_state.cpp:21

Author-emitted #warning pragmas. Fires on every ESP32 / Teensy / RP / nRF / Due workflow.

Fix: Replace #warning with a silent #ifndef+#define fallback, OR define A3/A4 aliases in the Arduino-core compat shim for variants that lack them.

Evidence

Hundreds of warnings per CI run that mask real signal.

Activity

  1. zackees commented on Jun 4, 2026

    @zackees
    MemberAuthor

    Tracked under fbuild meta-audit: FastLED/fbuild#408

  2. moved this from Triage to Done in FastLED Trackeron Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions