* [PATCH] socket: Fix missing-field-initializers build error.
@ 2015-08-31 23:40 Vinson Lee
0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2015-08-31 23:40 UTC (permalink / raw)
To: trinity; +Cc: Vinson Lee
From: Vinson Lee <vlee@twitter.com>
This patch fixes this build error.
CC syscalls/socket.o
syscalls/socket.c:48:2: error: missing initializer for field ‘func’ of ‘const struct socket_ptr’ [-Werror=missing-field-initializers]
[AF_ECONET] = { }, // DEAD
^
syscalls/socket.c:22:9: note: ‘func’ declared here
void (*func)(struct socket_triplet *st);
^
Signed-off-by: Vinson Lee <vlee@twitter.com>
---
syscalls/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syscalls/socket.c b/syscalls/socket.c
index 8beaf8d..94feb66 100644
--- a/syscalls/socket.c
+++ b/syscalls/socket.c
@@ -45,7 +45,7 @@ static const struct socket_ptr socketptrs[] = {
[AF_NETLINK] = { .func = &netlink_rand_socket },
[AF_PACKET] = { .func = &packet_rand_socket },
[AF_ASH] = { .func = NULL },
- [AF_ECONET] = { }, // DEAD
+ [AF_ECONET] = { .func = NULL }, // DEAD
[AF_ATMSVC] = { .func = NULL },
[AF_RDS] = { .func = &rds_rand_socket },
[AF_SNA] = { .func = NULL },
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-31 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-31 23:40 [PATCH] socket: Fix missing-field-initializers build error Vinson Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).