Fix compiler warnings
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
2
test/fixtures/fixture_request.cpp
vendored
2
test/fixtures/fixture_request.cpp
vendored
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user