use pragmas on when compiled with GCC

This commit is contained in:
Krasimir Angelov
2023-01-26 08:40:27 +01:00
parent 42c522954d
commit 7c13168bff

View File

@@ -12,8 +12,11 @@ struct PGF_INTERNAL_DECL PgfPhrasetableEntry {
struct PgfSequenceItor;
typedef ref<Node<PgfPhrasetableEntry>> 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,