From 679592463692c87afeaaad1e3dbfae821442231c Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 19 Oct 2004 08:55:14 +0000 Subject: [PATCH] UNUSED_FUNC: New function attribute. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@245 38d2e660-2303-0410-9eaa-f027e97ec537 --- compiler.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler.h b/compiler.h index af9ae624..40266bd0 100755 --- a/compiler.h +++ b/compiler.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* 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. *#* @@ -177,6 +180,7 @@ #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) @@ -296,6 +300,9 @@ #ifndef CONST_FUNC #define CONST_FUNC /* nothing */ #endif +#ifndef UNUSED_FUNC +#define UNUSED_FUNC /* nothing */ +#endif #ifndef RESTRICT #define RESTRICT /* nothing */ #endif -- 2.25.1