diff options
author | Jim Meyering <meyering@redhat.com> | 2008-11-30 22:37:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-12-01 21:18:52 +0100 |
commit | c58b5daa337b16416be50adfeb3e99e3c009c891 (patch) | |
tree | ed91dec7768322eb9f09427036069239b210f562 /src/stty.c | |
parent | 80325aca2dc20c9f6ac0ac51fdfb2a12aee565eb (diff) | |
download | coreutils-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/stty.c')
-rw-r--r-- | src/stty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stty.c b/src/stty.c index 8eeaa2fed..eb4f30f07 100644 --- a/src/stty.c +++ b/src/stty.c @@ -726,7 +726,7 @@ main (int argc, char **argv) { /* Initialize to all zeroes so there is no risk memcmp will report a spurious difference in an uninitialized portion of the structure. */ - struct termios mode = { 0, }; + DECLARE_ZEROED_AGGREGATE (struct termios, mode); enum output_type output_type; int optc; @@ -999,7 +999,7 @@ main (int argc, char **argv) { /* Initialize to all zeroes so there is no risk memcmp will report a spurious difference in an uninitialized portion of the structure. */ - struct termios new_mode = { 0, }; + DECLARE_ZEROED_AGGREGATE (struct termios, new_mode); if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode)) error (EXIT_FAILURE, errno, "%s", device_name); |