aboutsummaryrefslogtreecommitdiff
path: root/stdlib/optionals.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/optionals.c')
-rw-r--r--stdlib/optionals.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/optionals.c b/stdlib/optionals.c
index a3b3defc..cd93f936 100644
--- a/stdlib/optionals.c
+++ b/stdlib/optionals.c
@@ -61,6 +61,7 @@ public PUREFUNC bool is_null(const void *obj, const TypeInfo_t *non_optional_typ
}
}
+#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstack-protector"
public Text_t Optional$as_text(const void *obj, bool colorize, const TypeInfo_t *type)
{
@@ -72,5 +73,6 @@ public Text_t Optional$as_text(const void *obj, bool colorize, const TypeInfo_t
colorize ? Text("\x1b[m") : Text(""));
return Text$concat(generic_as_text(obj, colorize, type->OptionalInfo.type), colorize ? Text("\x1b[33m?\x1b[m") : Text("?"));
}
+#pragma GCC diagnostic pop
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1