diff options
Diffstat (limited to 'pom.c')
-rw-r--r-- | pom.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |