From b62cc13a208075e7853d29438eb68cd1456c017d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 21 Jun 2002 14:36:37 +0000 Subject: Object.m (forward, [...]): Fix unused parameter warnings. * Object.m (forward, read, write): Fix unused parameter warnings. * encoding.c: Include . (target_flags): Mark with attribute unused. (atoi): Delete. * runtime.h (__objc_selector_max_index): Change to unsigned int. (__objc_generate_gc_type_description): Prototype. * selector.c (__objc_selector_max_index): Change to unsigned int. From-SVN: r54884 --- libobjc/encoding.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'libobjc/encoding.c') diff --git a/libobjc/encoding.c b/libobjc/encoding.c index 956ca16..8fd6e5b 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #include "tconfig.h" #include "objc-api.h" #include "encoding.h" +#include #undef MAX #define MAX(X, Y) \ @@ -79,19 +80,9 @@ Boston, MA 02111-1307, USA. */ /* Some ROUND_TYPE_ALIGN macros use TARGET_foo, and consequently target_flags. Define a dummy entry here to so we don't die. */ - -static int target_flags = 0; - -static inline int -atoi (const char* str) -{ - int res = 0; - - while (isdigit ((unsigned char)*str)) - res *= 10, res += (*str++ - '0'); - - return res; -} +/* ??? FIXME: As of 2002-06-21, the attribute `unused' doesn't seem to + eliminate the warning. */ +static int __attribute__ ((__unused__)) target_flags = 0; /* return the size of an object specified by type -- cgit v1.1