mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
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>
This commit is contained in:
@@ -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 = { };
|
||||
TEST_COMPARE (sigprocmask (SIG_BLOCK, NULL, &blocked), 0);
|
||||
TEST_COMPARE (sigismember (&blocked, SIGCHLD), 0);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user