From 8ac61ad3afe5a174549645a3997aa59139f8a82b Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Thu, 17 Jan 2013 14:36:54 -0500 Subject: [PATCH] Fixes that come from clang. --- libhashkit/murmur3_api.cc | 2 +- libmemcached/csl/parser.yy | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libhashkit/murmur3_api.cc b/libhashkit/murmur3_api.cc index 137fd369..db35700b 100644 --- a/libhashkit/murmur3_api.cc +++ b/libhashkit/murmur3_api.cc @@ -43,7 +43,7 @@ uint32_t hashkit_murmur3(const char *key, size_t length, void *) const uint32_t seed= (0xdeadbeef * (uint32_t)length); uint32_t ret; - MurmurHash3_x86_32(key, length, seed, &ret); + MurmurHash3_x86_32(key, int(length), seed, &ret); return ret; } diff --git a/libmemcached/csl/parser.yy b/libmemcached/csl/parser.yy index 4fed2754..243c4fcd 100644 --- a/libmemcached/csl/parser.yy +++ b/libmemcached/csl/parser.yy @@ -34,6 +34,14 @@ * */ +%{ + +#include + +class Context; + +%} + %error-verbose %debug %defines @@ -51,7 +59,6 @@ %{ -#include #include #include -- 2.30.2