Namespace pollution due to compiler.h in Xenomai 3.1
jan.kiszka at siemens.com
Fri Mar 13 09:26:58 CET 2020
On 13.03.20 09:18, Richard Weinberger via Xenomai wrote:
> Our application uses cobalt/stdio.h, which includes at the end
> compiler.h defines since 3.1 __packed and other gcc attribute helpers
> in the global namespace. Is this intended?
> We noticed because out application also defines __packed...
That's indeed bad style which I didn't realize so far. All those
short-hands should be prefixed, e.g. like qt does (Q_NORETURN, Q_LIKELY
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
More information about the Xenomai