diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-29 23:14:31 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-29 23:14:31 -0400 |
| commit | 9ebb039a81f5ea06e97d84ef7ee447da9dfca204 (patch) | |
| tree | dc229247feb19ddec117e3c680dd1c13a40dbdd1 /stdlib/optionals.c | |
| parent | 3e019df9f429caef4b05947cc70652634ebb2467 (diff) | |
Fix up some GCC compiler flag options for LTO and inlining
Diffstat (limited to 'stdlib/optionals.c')
| -rw-r--r-- | stdlib/optionals.c | 2 |
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 |
