static inline uint8_t get_com_code(memcached_storage_action verb, bool noreply)
{
- uint8_t ret;
+ /* 0 isn't a value we want, but GCC 4.2 seems to think ret can otherwise
+ * be used uninitialized in this function. FAIL */
+ uint8_t ret= 0;
if (noreply)
switch (verb)
{
memcached_string_st *string;
- string= memcached_string_create(memc, NULL, INT64_MAX);
+ string= memcached_string_create(memc, NULL, SIZE_MAX);
assert(string == NULL);
return 0;
rc= memcached_string_append(string, buffer, SMALL_STRING_LEN);
assert(rc == MEMCACHED_SUCCESS);
}
- rc= memcached_string_append(string, buffer, INT64_MAX);
+ rc= memcached_string_append(string, buffer, SIZE_MAX);
assert(rc == MEMCACHED_MEMORY_ALLOCATION_FAILURE);
memcached_string_free(string);