Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 111 by selsky: compile errors: array subscript has type 'char'
http://code.google.com/p/memcached/issues/detail?id=111

On Solaris 9-sparc:

$ ./configure --with-libevent=/opt/local
$ make
[...]
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I/opt/local/include   -g -O2
-pthread -Wall -Werror -pedantic -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -MT memcached-util.o -MD -MP -MF
.deps/memcached-util.Tpo -c -o memcached-util.o `test -f 'util.c' || echo
'./'`util.c
cc1: warnings being treated as errors
util.c: In function ‘safe_strtoull’:
util.c:19: warning: array subscript has type ‘char’
util.c: In function ‘safe_strtoll’:
util.c:42: warning: array subscript has type ‘char’
util.c: In function ‘safe_strtoul’:
util.c:62: warning: array subscript has type ‘char’
util.c: In function ‘safe_strtol’:
util.c:86: warning: array subscript has type ‘char’
make[2]: *** [memcached-util.o] Error 1

$ gcc --version
gcc (GCC) 4.2.4
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to