Comment #10 on issue 403 by [email protected]: Memcached 1.4.23 crashes
on stats command
https://code.google.com/p/memcached/issues/detail?id=403
Does not compile with clang:
items.c:274: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:54:21: note: expanded from macro 'assert'
#define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
^
items.c:298: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:54:21: note: expanded from macro 'assert'
#define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
^
items.c:1097: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:54:21: note: expanded from macro 'assert'
#define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
^
items.c:1119: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:54:21: note: expanded from macro 'assert'
#define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
^
items.c:1145: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);
~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
--
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.