krb5 commit: Ignore warnings in libev code
Greg Hudson <[email protected]>
| Newsgroups | gmane.comp.encryption.kerberos.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/krb5/krb5/commit/52550a58846185fa07378ac38bca0d8c11d3134b commit 52550a58846185fa07378ac38bca0d8c11d3134b Author: Greg Hudson <[email protected]> Date: Sun Apr 16 00:54:36 2017 -0400 Ignore warnings in libev code Add pragma statements to verto-k5ev.c to ignore warnings generated by the libev code in gcc and clang. src/util/verto/verto-k5ev.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/util/verto/verto-k5ev.c b/src/util/verto/verto-k5ev.c index 713c4f2..3f08275 100644 --- a/src/util/verto/verto-k5ev.c +++ b/src/util/verto/verto-k5ev.c @@ -36,6 +36,18 @@ #include <verto.h> #include <verto-module.h> #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. */