I agree with your proposed fix.
-----Original Message----- From: Julien Blanc <[email protected]> Sent: Monday, June 13, 2022 9:17 AM To: Russell Johnson <[email protected]>; [email protected] Subject: [External] - Re: <evl/heap.h> compile conflict with Boost CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Le lundi 13 juin 2022 à 14:39 +0000, Russell Johnson via Xenomai a écrit : > I use boost throughout my entire app, so I need to figure how to get > both of these libraries to play nice with each other. Any ideas? ( I > am using gcc 8.3 and boost 1.70.0) > > /opt/evl/include/evl/compiler.h:64:36: error: '__fallthrough__' was > not declared in this scope > > #define fallthrough __attribute__((__fallthrough__)) > > ^~~~~~~~~~~~~~~ This line looks wrong. The correct way to use the fallthrough attribute (at least with gcc) is __attribute__((fallthrough)) , so that will conflict with any usage (not only boost's). It should probably be fixed by: #define __fallthrough __attribute__((fallthrough)) Regards, Julien -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6759 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20220613/a0334209/attachment.bin>
