summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-04-26 10:30:05 +0100
committerPádraig Brady <P@draigBrady.com>2011-05-08 17:38:37 +0100
commit73fd918bd0f4417bb800bd569af69fb07ec65e72 (patch)
treecf0055d5c744d198930f80805ad74761266d9bd7 /src/system.h
parent3c8ff029d4475eb79f69c98420f93e93a42a25dc (diff)
downloadcoreutils-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/system.h')
-rw-r--r--src/system.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/system.h b/src/system.h
index 1c351bd1b..2e8e17720 100644
--- a/src/system.h
+++ b/src/system.h
@@ -467,19 +467,6 @@ enum
# define IF_LINT(Code) /* empty */
#endif
-/* With -Dlint, avoid warnings from gcc about code like mbstate_t m = {0,};
- by wasting space on a static variable of the same type, that is thus
- guaranteed to be initialized to 0, and use that on the RHS. */
-#define DZA_CONCAT0(x,y) x ## y
-#define DZA_CONCAT(x,y) DZA_CONCAT0 (x, y)
-#ifdef lint
-# define DECLARE_ZEROED_AGGREGATE(Type, Var) \
- static Type DZA_CONCAT (s0_, __LINE__); Type Var = DZA_CONCAT (s0_, __LINE__)
-#else
-# define DECLARE_ZEROED_AGGREGATE(Type, Var) \
- Type Var = { 0, }
-#endif
-
#ifndef __attribute__
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
# define __attribute__(x) /* empty */