From 969bf523b7039c7038b66edde5776278c27941ac Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 14 Sep 2025 22:08:22 -0400 Subject: Start tests --- pom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pom.c') 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; -- cgit v1.2.3