Commit 76ec3d32 authored by Max Kellermann's avatar Max Kellermann

udp_server: disable -Wmissing-field-initializers

parent d0c85a5a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment