keyboardio / Kaleidoscope-Bundle-Keyboardio

A Kaleidoscope distribution for the Keyboardio Model 01 and other keyboards.
Other
17 stars 24 forks source link

The initialisation for ARDUINOTRACE_INIT uses DebugStderr, since #47

Closed obra closed 1 year ago

obra commented 1 year ago

these are globals defined in different translation units their initialisation order is not defined. In my case they initialised the wrong way around which triggered the UBSAN warning.

FWIW I got rid of the warning using the below use of the C++ FAQ suggestion https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use

Fixes Kaleidoscope#1348

Depends on Kaleidoscope #1349