diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-13 05:38:57 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-14 19:26:45 +0800 |
commit | 8aa2a9e0339215012354f3c4a262edda838134e8 (patch) | |
tree | 0c9e59246bcaf26bfb76478ca92cc12e9b43f8a0 /stdlib | |
parent | 1d40170dd367831b97cbdb89ad1b7241a241923b (diff) | |
download | glibc-8aa2a9e0339215012354f3c4a262edda838134e8.zip glibc-8aa2a9e0339215012354f3c4a262edda838134e8.tar.gz glibc-8aa2a9e0339215012354f3c4a262edda838134e8.tar.bz2 |
Add braces in initializers for GCC 4.9 or older
Add braces 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 'stdlib')
-rw-r--r-- | stdlib/tst-system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tst-system.c b/stdlib/tst-system.c index b5b630a..1878ee7 100644 --- a/stdlib/tst-system.c +++ b/stdlib/tst-system.c @@ -80,7 +80,7 @@ sleep_and_check_sigchld (void *closure) sprintf (cmd, "sleep %lf" , *seconds); TEST_COMPARE (system (cmd), 0); - sigset_t blocked = {0}; + sigset_t blocked = {{0}}; TEST_COMPARE (sigprocmask (SIG_BLOCK, NULL, &blocked), 0); TEST_COMPARE (sigismember (&blocked, SIGCHLD), 0); return NULL; |