diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-15 22:44:49 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-16 04:06:30 +0800 |
commit | 07e3eb17744fd0275d232c2ae2f888b91bbb672b (patch) | |
tree | 1b35f516aea162347cd14a5de4e70e798292639e /sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c | |
parent | b933e5cef63a6c136fe57de29eba7abc51b678de (diff) | |
download | glibc-07e3eb17744fd0275d232c2ae2f888b91bbb672b.zip glibc-07e3eb17744fd0275d232c2ae2f888b91bbb672b.tar.gz glibc-07e3eb17744fd0275d232c2ae2f888b91bbb672b.tar.bz2 |
Use empty initializer to silence GCC 4.9 or older
Use empty initializer to silence GCC 4.9 or older:
getaddrinfo.c: In function ‘gaih_inet’:
getaddrinfo.c:1135:24: error: missing braces around initializer [-Werror=missing-braces]
/ sizeof (struct gaih_typeproto)] = {0};
^
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c index e0fb28d..e2f0655 100644 --- a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c +++ b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c @@ -76,7 +76,7 @@ do_recvmsg_ancillary (bool use_multi_call, struct mmsghdr *mmhdr, static void do_test_large_buffer (bool mc) { - struct mmsghdr mmhdr = { 0 }; + struct mmsghdr mmhdr = { }; /* It should be large enough for either timeval/timespec and the 64 time type as well. */ @@ -147,7 +147,7 @@ do_test_large_buffer (bool mc) static void do_test_small_buffer (bool mc) { - struct mmsghdr mmhdr = { 0 }; + struct mmsghdr mmhdr = { }; /* Enable 32 bit timeval precision and check if no 64 bit timeval stamp is created. */ |