Warning about undefined behavior upon building on Mac
dmitigr opened this issue · comments
Dmitry Igrishin commented
Hi,
When building on Mac, a lot of warnings like the following one are issued:
In file included from /Users/ingo/src/tsbe/3rdparty/timeswipe/driver/src/timeswipe.cpp:10:
In file included from /Users/ingo/src/tsbe/3rdparty/timeswipe/driver/src/reader.hpp:5:
In file included from /Users/ingo/src/tsbe/3rdparty/timeswipe/driver/src/board.hpp:69:
/Users/ingo/src/tsbe/3rdparty/timeswipe/driver/src/board.cpp:103:5: warning: macro expansion
producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if NOT_RPI
^
/Users/ingo/src/tsbe/3rdparty/timeswipe/driver/src/defs.h:3:18: note: expanded from macro 'NOT_RPI'
#define NOT_RPI !defined(__arm__) && !defined(__aarch64__)