summaryrefslogtreecommitdiff
path: root/pom.c
diff options
context:
space:
mode:
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);