1
0
forked from GitHub/gf-core

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; struct PgfSequenceItor;
typedef ref<Node<PgfPhrasetableEntry>> PgfPhrasetable; typedef ref<Node<PgfPhrasetableEntry>> PgfPhrasetable;
#if __GNUC__
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes" #pragma GCC diagnostic ignored "-Wattributes"
#endif
struct PgfPhrasetableIds { struct PgfPhrasetableIds {
public: public:
@@ -45,7 +48,9 @@ private:
SeqIdChain *chains; SeqIdChain *chains;
}; };
#if __GNUC__
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif
PGF_INTERNAL_DECL PGF_INTERNAL_DECL
PgfPhrasetable phrasetable_internalize(PgfPhrasetable table, PgfPhrasetable phrasetable_internalize(PgfPhrasetable table,