diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-06-21 14:36:37 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-06-21 14:36:37 +0000 |
commit | b62cc13a208075e7853d29438eb68cd1456c017d (patch) | |
tree | d24924d0ab18e08862172b48ce646fbe00c762da /libobjc/encoding.c | |
parent | 4ae361ecf2339a26c1d785925ffc1f1054ab5310 (diff) | |
download | gcc-b62cc13a208075e7853d29438eb68cd1456c017d.zip gcc-b62cc13a208075e7853d29438eb68cd1456c017d.tar.gz gcc-b62cc13a208075e7853d29438eb68cd1456c017d.tar.bz2 |
Object.m (forward, [...]): Fix unused parameter warnings.
* 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.
From-SVN: r54884
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 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 <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 |