From c8ef3a67210c980d5d1ff2c1bd7d8fffd39846b5 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 14 Sep 2025 11:49:47 -0400 Subject: New typed-get API, again --- pom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pom.c') diff --git a/pom.c b/pom.c index 906e970..ad3919c 100644 --- a/pom.c +++ b/pom.c @@ -234,9 +234,10 @@ make_error(const char *file, uint64_t line, const char *fmt, ...) { err->line = line; err->message = message; char *string = strchr(message, '\0') + 1; - // no, clang, string will not overlap with message. + // no, GCC, string will not overlap with message. #if __GNUC__ >= 4 #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wunknown-warning-option" #pragma GCC diagnostic ignored "-Wrestrict" #endif sprintf(string, "Error:\n%s:%" PRIu64 ": %s\n", file, line, message); -- cgit v1.2.3