diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:31:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:31:53 -0400 |
| commit | ca76fb335ae7b3f820beeeed5667950e7489711e (patch) | |
| tree | e0ef48cce92aeeb92241ef98c65bf3af84c05ca4 /src/stdlib/structs.c | |
| parent | 4de0fee8f694503b453e04084caaab55f8670b6c (diff) | |
Add compiler guards for GCC directives
Diffstat (limited to 'src/stdlib/structs.c')
| -rw-r--r-- | src/stdlib/structs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdlib/structs.c b/src/stdlib/structs.c index ca88262c..53b0e0a4 100644 --- a/src/stdlib/structs.c +++ b/src/stdlib/structs.c @@ -14,8 +14,10 @@ #include "text.h" #include "util.h" +#ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstack-protector" +#endif PUREFUNC public uint64_t Struct$hash(const void *obj, const TypeInfo_t *type) { if (type->StructInfo.num_fields == 0) @@ -50,7 +52,9 @@ PUREFUNC public uint64_t Struct$hash(const void *obj, const TypeInfo_t *type) } return siphash24((void*)field_hashes, sizeof(field_hashes)); } +#ifdef __GNUC__ #pragma GCC diagnostic pop +#endif PUREFUNC public uint64_t PackedData$hash(const void *obj, const TypeInfo_t *type) { |
