From 15b349b65407613965adcf450c491aca5e1ac7f5 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Sat, 24 Sep 2016 17:17:59 +0200 Subject: [PATCH] nail.h: more clang pragmas: assign-enum, disabled-macro-expansion.. The former is a problem because i use enums for bit flags, since there is no "bitenum" in C (sic), the latter i cannot stand because of hundreds of messages that refer to system headers --- nail.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nail.h b/nail.h index e3cb36f02..960250730 100644 --- a/nail.h +++ b/nail.h @@ -345,8 +345,10 @@ * XXX Wild guesses: clang(1) 1.7 and (OpenBSD) gcc(1) 4.2.1 don't work */ #ifndef HAVE_DEVEL # if PREREQ_CLANG(3, 4) -# pragma clang diagnostic ignored "-Wunused-result" +# pragma clang diagnostic ignored "-Wassign-enum" +# pragma clang diagnostic ignored "-Wdisabled-macro-expansion" # pragma clang diagnostic ignored "-Wformat" +# pragma clang diagnostic ignored "-Wunused-result" # elif PREREQ_GCC(4, 7) # pragma GCC diagnostic ignored "-Wunused-local-typedefs" # pragma GCC diagnostic ignored "-Wunused-result" -- 2.11.4.GIT