=== modified file 'plugin-runner.c' --- plugin-runner.c 2013-10-20 15:25:09 +0000 +++ plugin-runner.c 2013-12-15 22:21:28 +0000 @@ -1071,8 +1071,20 @@ goto fallback; } +#if defined (__GNUC__) and defined (__GLIBC__) +#if not __GLIBC_PREREQ(2, 16) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-conversion" +#endif +#endif FD_SET(new_plugin->fd, &rfds_all); /* Spurious warning from - -Wconversion */ + -Wconversion in GNU libc + before 2.16 */ +#if defined (__GNUC__) and defined (__GLIBC__) +#if not __GLIBC_PREREQ(2, 16) +#pragma GCC diagnostic pop +#endif +#endif if(maxfd < new_plugin->fd){ maxfd = new_plugin->fd; @@ -1132,8 +1144,20 @@ } /* Remove the plugin */ +#if defined (__GNUC__) and defined (__GLIBC__) +#if not __GLIBC_PREREQ(2, 16) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-conversion" +#endif +#endif FD_CLR(proc->fd, &rfds_all); /* Spurious warning from - -Wconversion */ + -Wconversion in GNU libc + before 2.16 */ +#if defined (__GNUC__) and defined (__GLIBC__) +#if not __GLIBC_PREREQ(2, 16) +#pragma GCC diagnostic pop +#endif +#endif /* Block signal while modifying process_list */ ret = (int)TEMP_FAILURE_RETRY(sigprocmask @@ -1179,9 +1203,23 @@ } /* This process has not completed. Does it have any output? */ +#if defined (__GNUC__) and defined (__GLIBC__) +#if not __GLIBC_PREREQ(2, 16) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-conversion" +#endif +#endif if(proc->eof or not FD_ISSET(proc->fd, &rfds)){ /* Spurious warning from - -Wconversion */ + -Wconversion + in GNU libc + before + 2.16 */ +#if defined (__GNUC__) and defined (__GLIBC__) +#if not __GLIBC_PREREQ(2, 16) +#pragma GCC diagnostic pop +#endif +#endif /* This process had nothing to say at this time */ proc = proc->next; continue; === modified file 'plugins.d/mandos-client.c' --- plugins.d/mandos-client.c 2013-10-20 15:25:09 +0000 +++ plugins.d/mandos-client.c 2013-12-15 22:21:28 +0000 @@ -736,9 +736,15 @@ } if(af == AF_INET6){ to.in6.sin6_port = htons(port); +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif if(IN6_IS_ADDR_LINKLOCAL /* Spurious warnings from */ - (&to.in6.sin6_addr)){ /* -Wstrict-aliasing=2 or lower and - -Wunreachable-code*/ + (&to.in6.sin6_addr)){ /* -Wstrict-aliasing=2 or lower */ +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif if(if_index == AVAHI_IF_UNSPEC){ fprintf_plus(stderr, "An IPv6 link-local address is" " incomplete without a network interface\n"); @@ -749,9 +755,7 @@ to.in6.sin6_scope_id = (uint32_t)if_index; } } else { - to.in.sin_port = htons(port); /* Spurious warnings from - -Wconversion and - -Wunreachable-code */ + to.in.sin_port = htons(port); } if(quit_now){