summaryrefslogtreecommitdiff
path: root/pom.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-14 11:49:47 -0400
committerpommicket <pommicket@gmail.com>2025-09-14 11:49:47 -0400
commitc8ef3a67210c980d5d1ff2c1bd7d8fffd39846b5 (patch)
tree4a89c76e2fc573e8e9a88fc3a602272a049b9d09 /pom.c
parent931a11868a81fc877c083b987108f72fc3fd2976 (diff)
New typed-get API, again
Diffstat (limited to 'pom.c')
-rw-r--r--pom.c3
1 files changed, 2 insertions, 1 deletions
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);