#include <string.h>
#include <sys/types.h>
+#pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations"
+
/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;
typedef const unsigned char *CONST_POINTER;
#include <libmemcached/csl/scanner.h>
#ifndef __INTEL_COMPILER
-#pragma GCC diagnostic ignored "-Wold-style-cast"
+# pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
#ifndef __INTEL_COMPILER
-#ifndef __clang__
-#pragma GCC diagnostic ignored "-Wlogical-op"
-#endif
+# ifndef __clang__
+# pragma GCC diagnostic ignored "-Wlogical-op"
+# pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations"
+# endif
#endif
int conf_lex(YYSTYPE* lvalp, void* scanner);
char touch_buffer[32]; // @todo document this number
rc= memcached_safe_read(instance, buffer, sizeof(touch_buffer));
}
- return MEMCACHED_SUCCESS;
+ return memcached_set_error(*instance, rc, MEMCACHED_AT);
}
case PROTOCOL_BINARY_CMD_NOOP:
_APPEND_COMPILE_FLAGS_ERROR([-Wmissing-prototypes])
_APPEND_COMPILE_FLAGS_ERROR([-Wnested-externs])
_APPEND_COMPILE_FLAGS_ERROR([-Wnormalized=id])
- _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-definition])
_APPEND_COMPILE_FLAGS_ERROR([-Woverride-init])
_APPEND_COMPILE_FLAGS_ERROR([-Wpointer-arith])
_APPEND_COMPILE_FLAGS_ERROR([-Wpointer-sign])
_APPEND_COMPILE_FLAGS_ERROR([-Wunsafe-loop-optimizations])
_APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations])
_APPEND_COMPILE_FLAGS_ERROR([-Wc++11-compat])
- _APPEND_COMPILE_FLAGS_ERROR([-Weffc++])
+# _APPEND_COMPILE_FLAGS_ERROR([-Weffc++])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=address])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=thread])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unsigned-integer-overflow])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vla-bound])
_APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vptr])
- _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast])
+# _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast])
_APPEND_COMPILE_FLAGS_ERROR([-Wclobbered])
_APPEND_COMPILE_FLAGS_ERROR([-Wunused])
_APPEND_COMPILE_FLAGS_ERROR([-Wunused-result])