From 7c13168bffe85a471916c694773e23772d0e08e6 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Thu, 26 Jan 2023 08:40:27 +0100 Subject: [PATCH] use pragmas on when compiled with GCC --- src/runtime/c/pgf/phrasetable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/runtime/c/pgf/phrasetable.h b/src/runtime/c/pgf/phrasetable.h index b3fe4ed35..a61aa124f 100644 --- a/src/runtime/c/pgf/phrasetable.h +++ b/src/runtime/c/pgf/phrasetable.h @@ -12,8 +12,11 @@ struct PGF_INTERNAL_DECL PgfPhrasetableEntry { struct PgfSequenceItor; typedef ref> PgfPhrasetable; + +#if __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wattributes" +#endif struct PgfPhrasetableIds { public: @@ -45,7 +48,9 @@ private: SeqIdChain *chains; }; +#if __GNUC__ #pragma GCC diagnostic pop +#endif PGF_INTERNAL_DECL PgfPhrasetable phrasetable_internalize(PgfPhrasetable table,