summaryrefslogtreecommitdiffstats
path: root/include/compiler.h
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-09-01 20:58:03 +0400
committerWolfgang Denk <wd@denx.de>2009-09-04 22:16:40 +0200
commitd8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3 (patch)
tree65966fdde9c05aec00985a739e2f7411dad38d1f /include/compiler.h
parentd72871e1387094972569e4b77c25e88020f7b68f (diff)
downloadblackbird-obmc-uboot-d8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3.tar.gz
blackbird-obmc-uboot-d8bc55a6fb28876abcbf4a3fc3b6c3ce429c1bb3.zip
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
OpenPOWER on IntegriCloud