projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove spurious token in preprocessor directive.
[bertos.git]
/
compiler.h
diff --git
a/compiler.h
b/compiler.h
index af9ae624b45acf002852ae393389585577152f57..65effeca2b5305d49a7cf6a12bd7f9baeec45a64 100755
(executable)
--- a/
compiler.h
+++ b/
compiler.h
@@
-14,6
+14,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.27 2004/10/21 10:09:40 bernie
+ *#* Remove spurious token in preprocessor directive.
+ *#*
+ *#* Revision 1.26 2004/10/19 08:55:14 bernie
+ *#* UNUSED_FUNC: New function attribute.
+ *#*
*#* Revision 1.25 2004/10/19 07:14:20 bernie
*#* Add macros to test for specific compiler features.
*#*
*#* Revision 1.25 2004/10/19 07:14:20 bernie
*#* Add macros to test for specific compiler features.
*#*
@@
-177,6
+183,7
@@
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
#define PURE_FUNC __attribute__((pure))
#define CONST_FUNC __attribute__((const))
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
#define PURE_FUNC __attribute__((pure))
#define CONST_FUNC __attribute__((const))
+ #define UNUSED_FUNC __attribute__((unused))
#define RESTRICT __restrict__
#define MUST_CHECK __attribute__((warn_unused_result))
#if GNUC_PREREQ(3,1)
#define RESTRICT __restrict__
#define MUST_CHECK __attribute__((warn_unused_result))
#if GNUC_PREREQ(3,1)
@@
-258,7
+265,7
@@
* \def COMPILER_STATEMENT_EXPRESSIONS
* Support for macros with variable arguments.
*/
* \def COMPILER_STATEMENT_EXPRESSIONS
* Support for macros with variable arguments.
*/
-#ifndef COMPILER_STATEMENT_EXPRESSIONS
0
+#ifndef COMPILER_STATEMENT_EXPRESSIONS
#define COMPILER_STATEMENT_EXPRESSIONS 0
#endif
#define COMPILER_STATEMENT_EXPRESSIONS 0
#endif
@@
-296,6
+303,9
@@
#ifndef CONST_FUNC
#define CONST_FUNC /* nothing */
#endif
#ifndef CONST_FUNC
#define CONST_FUNC /* nothing */
#endif
+#ifndef UNUSED_FUNC
+#define UNUSED_FUNC /* nothing */
+#endif
#ifndef RESTRICT
#define RESTRICT /* nothing */
#endif
#ifndef RESTRICT
#define RESTRICT /* nothing */
#endif