summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-11-30 22:37:42 +0100
committerJim Meyering <meyering@redhat.com>2008-12-01 21:18:52 +0100
commitc58b5daa337b16416be50adfeb3e99e3c009c891 (patch)
treeed91dec7768322eb9f09427036069239b210f562 /src/wc.c
parent80325aca2dc20c9f6ac0ac51fdfb2a12aee565eb (diff)
downloadcoreutils-c58b5daa337b16416be50adfeb3e99e3c009c891.tar.xz
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.
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index 8cfd974ca..ad25ed8d0 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -275,7 +275,7 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
{
bool in_word = false;
uintmax_t linepos = 0;
- mbstate_t state = { 0, };
+ DECLARE_ZEROED_AGGREGATE (mbstate_t, state);
bool in_shift = false;
# if SUPPORT_OLD_MBRTOWC
/* Back-up the state before each multibyte character conversion and