Fix compiler warnings

This commit is contained in:
John Firebaugh
2014-10-17 11:11:24 -07:00
parent 4603ca037c
commit 4e9688e430
2 changed files with 5 additions and 3 deletions

View File

@@ -58,8 +58,10 @@ struct EventPermutation {
};
constexpr EventSeverity disabledEventSeverities[] = {
#if !DEBUG
EventSeverity::Debug,
#if DEBUG
EventSeverity(-1) // Avoid zero size array
#else
EventSeverity::Debug
#endif
};

View File

@@ -48,7 +48,7 @@ void HTTPRequestBaton::start(const util::ptr<HTTPRequestBaton> &baton) {
uv_async_send(baton->async);
}
void HTTPRequestBaton::stop(const util::ptr<HTTPRequestBaton> &baton) {
void HTTPRequestBaton::stop(const util::ptr<HTTPRequestBaton> &/*baton*/) {
fprintf(stderr, "HTTP request cannot be canceled because it is answered immediately");
abort();
}