aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-15 22:44:49 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-16 04:06:30 +0800
commit07e3eb17744fd0275d232c2ae2f888b91bbb672b (patch)
tree1b35f516aea162347cd14a5de4e70e798292639e /misc
parentb933e5cef63a6c136fe57de29eba7abc51b678de (diff)
downloadglibc-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 'misc')
-rw-r--r--misc/tst-preadvwritev2-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
index 4556421..2d2f874 100644
--- a/misc/tst-preadvwritev2-common.c
+++ b/misc/tst-preadvwritev2-common.c
@@ -97,7 +97,7 @@ do_test_with_invalid_iov (void)
{
/* An invalid iovec buffer should trigger an invalid memory access
or an error (Linux for instance returns EFAULT). */
- struct iovec iov[IOV_MAX+1] = { 0 };
+ struct iovec iov[IOV_MAX+1] = { };
TEST_VERIFY (preadv2 (temp_fd, iov, IOV_MAX + 1, 0, RWF_HIPRI) == -1);
TEST_VERIFY (errno == EINVAL || errno == ENOTSUP);