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

New issue 409 by [email protected]: build fail in opensuse 11.4 by clang 3.6.0
https://code.google.com/p/memcached/issues/detail?id=409

What steps will reproduce the problem?
1. download latest memcached
2. run   CC=clang ./configure
3. run   make

What is the expected output? What do you see instead?

expected : success without error

I see:

clang -DHAVE_CONFIG_H -I. -fprofile-arcs -ftest-coverage -g -O2 -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-items.o -MD -MP -MF .deps/memcached_debug-items.Tpo -c -o memcached_debug-items.o `test -f 'items.c' || echo './'`items.c items.c:1141:28: error: comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    assert(it->slabs_clsid < LARGEST_ID);
           ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
/usr/include/assert.h:86:5: note: expanded from macro 'assert'
  ((expr)                                                               \
    ^
1 error generated.
make[2]: *** [memcached_debug-items.o] Error 1
make[2]: Leaving directory `/root/tmp/memcached-1.4.24'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tmp/memcached-1.4.24'
make: *** [all] Error 2



What version of the product are you using? On what operating system?

opensuse 11.4
clang 3.6.0


Please provide any additional information below.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to