udp_server: disable -Wmissing-field-initializers
This commit is contained in:
parent
d0c85a5a96
commit
76ec3d3248
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "udp_server.h"
|
#include "udp_server.h"
|
||||||
#include "io_thread.h"
|
#include "io_thread.h"
|
||||||
|
#include "gcc.h"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -34,6 +35,12 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#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 {
|
struct udp_server {
|
||||||
const struct udp_server_handler *handler;
|
const struct udp_server_handler *handler;
|
||||||
void *handler_ctx;
|
void *handler_ctx;
|
||||||
|
Loading…
Reference in New Issue
Block a user