aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/structs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/structs.c')
-rw-r--r--src/stdlib/structs.c4
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)
{