From c58b5daa337b16416be50adfeb3e99e3c009c891 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Nov 2008 22:37:42 +0100 Subject: avoid warnings about initialization of automatic aggregates * src/system.h (DZA_CONCAT0, DZA_CONCAT): New macros. (DECLARE_ZEROED_AGGREGATE): New macro. * src/ls.c (quote_name): Use it. * src/pathchk.c (portable_chars_only): Use it. * src/shred.c (main): Use it. * src/stty.c (main): Use it. * src/wc.c (SUPPORT_OLD_MBRTOWC): Use it. --- src/pathchk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathchk.c') diff --git a/src/pathchk.c b/src/pathchk.c index 48001fc03..3b2bd467b 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -198,7 +198,7 @@ portable_chars_only (char const *file, size_t filelen) if (*invalid) { - mbstate_t mbstate = { 0, }; + DECLARE_ZEROED_AGGREGATE (mbstate_t, mbstate); size_t charlen = mbrlen (invalid, filelen - validlen, &mbstate); error (0, 0, _("nonportable character %s in file name %s"), -- cgit v1.2.3-54-g00ecf