summaryrefslogtreecommitdiffstats
path: root/include/compiler.h
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-09-01 20:58:03 +0400
committerTom Rix <Tom.Rix@windriver.com>2009-10-03 09:04:12 -0500
commit88f9d60b62829ea2a948b9c20fc8a3df94b512bd (patch)
tree4ea72f79b9793f9813d5c6275bf226d5cc38723a /include/compiler.h
parentd42914fbb8fc886f75da1bf74643fc3e7a00f3ce (diff)
Move uninitialized_var() macro from ubi_uboot.h to compiler.h
This is needed so that we could use this macro for non-UBI code. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 272fd3cf62..e602cce2e9 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -122,4 +122,7 @@ typedef unsigned int uintptr_t;
#endif
+/* compiler options */
+#define uninitialized_var(x) x = x
+
#endif