commaai / panda

code powering the comma.ai panda
MIT License
1.5k stars 744 forks source link

Updating libpanda test to use clang fails compilation #1957

Open andiradulescu opened 1 month ago

andiradulescu commented 1 month ago

Updating libpanda test to use clang (for macOS) https://github.com/andiradulescu/panda/commit/1e5d846d17dd32d1927638a60d73e96556f6539c fails compilation with:

In file included from panda/board/safety.h:12:
panda/board/safety/safety_chrysler.h:79:19: fatal error: initializer element is not a compile-time constant
  {CHRYSLER_ADDRS.CRUISE_BUTTONS, 0, 3},
   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
1 error generated.

Apple clang version 15.0.0 on latest macOS Sonoma 14.5.

andiradulescu commented 1 month ago

First try ~https://github.com/commaai/panda/pull/1958~ rejected - a solution is still needed.