forked from GitHub/gf-core
use pragmas on when compiled with GCC
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user