Removed compile warnings

Change-Id: I4e29c7aac38cd4704f22316f7b89cabe970f869d
Reviewed-on: http://review.couchbase.org/31353
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>