Re: [PATCH v13 0/3] add diagnostics macros to make code portable

2025-01-16 Thread Bruce Richardson
On Wed, Jan 15, 2025 at 05:55:08PM -0800, Andre Muezerie wrote: > It was a common pattern to have "GCC diagnostic ignored" pragmas > sprinkled over the code and only activate these pragmas for certain > compilers (gcc and clang). Clang supports GCC's pragma for > compatibility with existing source

[PATCH v13 0/3] add diagnostics macros to make code portable

2025-01-15 Thread Andre Muezerie
It was a common pattern to have "GCC diagnostic ignored" pragmas sprinkled over the code and only activate these pragmas for certain compilers (gcc and clang). Clang supports GCC's pragma for compatibility with existing source code, so #pragma GCC diagnostic and #pragma clang diagnostic are synonym