diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-21 14:36:37 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-21 14:36:37 +0000 |
commit | 94627e4fcc8264d6f8b7015b68d588c476d496fc (patch) | |
tree | d24924d0ab18e08862172b48ce646fbe00c762da /libobjc/encoding.c | |
parent | bb1fc1502131ff129e028f4199f5d0926735cfd1 (diff) | |
download | gcc-94627e4fcc8264d6f8b7015b68d588c476d496fc.tar.gz |
* Object.m (forward, read, write): Fix unused parameter warnings.
* encoding.c: Include <stdlib.h>.
(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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r-- | libobjc/encoding.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c index 956ca16e76d..8fd6e5b26c2 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 <stdlib.h> #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 |