summaryrefslogtreecommitdiff
path: root/pom.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-14 22:08:22 -0400
committerpommicket <pommicket@gmail.com>2025-09-14 22:08:22 -0400
commit969bf523b7039c7038b66edde5776278c27941ac (patch)
tree89a9754ff69046c813f238bff424be7cec722cdb /pom.c
parent0302aca4e1aa3eb495970af40a63f8bf4cf95779 (diff)
Start tests
Diffstat (limited to 'pom.c')
-rw-r--r--pom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pom.c b/pom.c
index 7ec6a65..dadcece 100644
--- a/pom.c
+++ b/pom.c
@@ -266,15 +266,14 @@ make_error(const char *file, uint64_t line, enum error_id id, ...) {
err->message = message;
char *string = strchr(message, '\0') + 1;
// no, GCC, string will not overlap with message.
- #if __GNUC__ >= 4
+ #if !__clang__ && __GNUC__ >= 4
#pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wrestrict"
#endif
sprintf(string, "%s\n%s:%" PRIu64 ": %s\n",
get_error_message(ERROR_HEADER),
file, line, message);
- #if __GNUC__ >= 4
+ #if !__clang__ && __GNUC__ >= 4
#pragma GCC diagnostic pop
#endif
err->string = string;