Here's an example of the warning:
Code: Select all
../../ChibiOS_20.x.x/os/rt/src/chregistry.c:93:12: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
(uint8_t)_offsetof(thread_t, hdr.pqueue.prio),
https://github.com/llvm-mirror/clang/bl ... def.h#L120
https://github.com/gcc-mirror/gcc/blob/ ... def.h#L406