From: Greg Hudson Date: Sun, 16 Apr 2017 04:54:36 +0000 (-0400) Subject: Ignore warnings in libev code X-Git-Tag: krb5-1.16-beta1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52550a58846185fa07378ac38bca0d8c11d3134b;p=thirdparty%2Fkrb5.git Ignore warnings in libev code Add pragma statements to verto-k5ev.c to ignore warnings generated by the libev code in gcc and clang. --- diff --git a/src/util/verto/verto-k5ev.c b/src/util/verto/verto-k5ev.c index 713c4f2425..3f08275c30 100644 --- a/src/util/verto/verto-k5ev.c +++ b/src/util/verto/verto-k5ev.c @@ -36,6 +36,18 @@ #include #include #include "rename.h" + +/* Ignore some warnings generated by the libev code, which the libev maintainer + * isn't interested in avoiding. */ +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wunused-value" +#pragma GCC diagnostic ignored "-Wcomment" +#pragma GCC diagnostic ignored "-Wunused-result" +#ifdef __clang__ +#pragma GCC diagnostic ignored "-Wbitwise-op-parentheses" +#endif +#endif + #define EV_API_STATIC 1 #define EV_STANDALONE 1 /* Avoid using clock_gettime, which would create a dependency on librt. */