From 7734f2e134ef19f4d767703f5a1eda136b08b0b2 Mon Sep 17 00:00:00 2001 From: "B. Scott Michel" Date: Wed, 21 Oct 2015 14:15:03 -0700 Subject: [PATCH] ecl-cmp_clang_pragmas Add pragmas to ecl-cmp.h to reduce Clang warnings (better fix: fix the compiler to not produce the kind of code that triggers the warnings, but this works for the time being.) --- src/h/ecl-cmp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/h/ecl-cmp.h b/src/h/ecl-cmp.h index aca0832e8..4d17c5f1e 100755 --- a/src/h/ecl-cmp.h +++ b/src/h/ecl-cmp.h @@ -21,6 +21,11 @@ * defined */ #define _WINSOCKAPI_ #endif /* __CYGWIN__ */ +/* Disable a couple of clang's more annoying diagnostics */ +#pragma clang diagnostic ignored "-Wreturn-type" +#pragma clang diagnostic ignored "-Wunused-value" +#pragma clang diagnostic ignored "-Wparentheses-equality" + #include #include /* for inline mathematics */ #include