udp_server: disable -Wmissing-field-initializers

This commit is contained in:
Max Kellermann 2011-09-15 09:15:19 +02:00
parent d0c85a5a96
commit 76ec3d3248

View File

@ -19,6 +19,7 @@
#include "udp_server.h"
#include "io_thread.h"
#include "gcc.h"
#include <glib.h>
#include <unistd.h>
@ -34,6 +35,12 @@
#include <netinet/in.h>
#endif
#if GCC_CHECK_VERSION(4, 2)
/* allow C99 initialisers on struct sockaddr_in, even if the
(non-portable) attribute "sin_zero" is missing */
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
struct udp_server {
const struct udp_server_handler *handler;
void *handler_ctx;