summary refs log tree commit diff
path: root/src/system.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-05-03 15:02:01 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-05-03 15:09:00 +0800
commit5234133cf40494fe1bbce5a358dd636fc0a6ab66 (patch)
tree65d08f4e5c3a5faac321082b0d37ede743a78132 /src/system.h
parent[SHELL] Fixed klibc/klcc build problems (diff)
downloaddash-5234133cf40494fe1bbce5a358dd636fc0a6ab66.tar.gz
dash-5234133cf40494fe1bbce5a358dd636fc0a6ab66.zip
[SHELL] Use uninitialized_var to silence bogus warnings
gcc generates bogus warnings about uninitialised variables in parser.c.
This patch borrows the uninitialized_var macro from Linux to silence
them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index b8853e6..17a9533 100644
--- a/src/system.h
+++ b/src/system.h
@@ -97,3 +97,9 @@ static inline int killpg(pid_t pid, int signal)
 #define _SC_CLK_TCK 2
 long sysconf(int) __attribute__((__noreturn__));
 #endif
+
+/*
+ * A trick to suppress uninitialized variable warning without generating any
+ * code
+ */
+#define uninitialized_var(x) x = x