diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-04-26 10:30:05 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-05-08 17:38:37 +0100 |
commit | 73fd918bd0f4417bb800bd569af69fb07ec65e72 (patch) | |
tree | cf0055d5c744d198930f80805ad74761266d9bd7 /src/stty.c | |
parent | 3c8ff029d4475eb79f69c98420f93e93a42a25dc (diff) | |
download | coreutils-73fd918bd0f4417bb800bd569af69fb07ec65e72.tar.xz |
maint: remove -Wmissing-field-initializers workarounds
* configure.ac: Rather than disabling -Wmissing-field-initializers,
use the fact that gnulib now disables it automatically when required
(on versions of GCC older than 4.7).
* src/system.h: Remove the no longer needed DECLARE_ZEROED_AGGREGATE.
* src/ls.c: Likewise.
* src/pathchk.c: Likewise.
* src/shred.c: Likewise.
* src/stty.c: Likewise.
* src/wc.c: Likewise.
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 674a19afd..6d54eced2 100644 --- a/src/stty.c +++ b/src/stty.c @@ -730,7 +730,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. */ - DECLARE_ZEROED_AGGREGATE (struct termios, mode); + struct termios mode = { 0, }; enum output_type output_type; int optc; @@ -1003,7 +1003,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. */ - DECLARE_ZEROED_AGGREGATE (struct termios, new_mode); + struct termios new_mode = { 0, }; if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode)) error (EXIT_FAILURE, errno, "%s", device_name); |