summaryrefslogtreecommitdiffstats
path: root/include/compiler.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-01 10:13:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-01 10:13:13 +0200
commitc41b41f9e778e48f3afe7956870c7c7f1e10d006 (patch)
tree338c06e82e622ff136c7181d95ebab94855c9d9e /include/compiler.h
parentd27e123c531d64047a6a4a14b87c27887b501d5e (diff)
downloadbarebox-c41b41f9e778e48f3afe7956870c7c7f1e10d006.tar.gz
barebox-c41b41f9e778e48f3afe7956870c7c7f1e10d006.tar.xz
add __used attribute in compiler.h
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index dea101bedd..c20e522275 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -1 +1,8 @@
+#ifndef __COMPILER_H
+#define __COMPILER_H
+
#define __maybe_unused __attribute__((unused))
+#define __used __attribute__((__used__))
+
+#endif /* __COMPILER_H */
+