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/shred.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shred.c') diff --git a/src/shred.c b/src/shred.c index 6b7d90167..1e7bffb90 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1099,7 +1099,7 @@ int main (int argc, char **argv) { bool ok = true; - struct Options flags = { 0, }; + DECLARE_ZEROED_AGGREGATE (struct Options, flags); char **file; int n_files; int c; -- cgit v1.2.3-54-g00ecf