================ @@ -1157,19 +1156,16 @@ existed. #if foo #endif foo // warning: extra tokens at end of #endif directive - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wextra-tokens" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wextra-tokens" #if foo #endif foo // no warning - #pragma clang diagnostic pop + #pragma GCC diagnostic pop ---------------- Endilll wrote:
Makes sense, even if we say elsewhere that `GCC` and `clang` can be used interchangeably for pragmas supported by both compilers. https://github.com/llvm/llvm-project/pull/78095 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits