Warnings clean up

JIRA-ID: COUCHDB-2455