Commit 356d733f authored by Ivan Murashov's avatar Ivan Murashov Committed by Commit Bot

GCC: Add missing default return value for QueryCancellationTraitsImpl()

Without default return value GCC produces a lot of warnings like:
../../base/bind_internal.h:773:1: warning:
control reaches end of non-void function [-Wreturn-type]

Added return false by default to suppress the warnings.

Bug: 819294
Change-Id: I593cd48bf336cb5e7614592a507451a67e0ec1d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2520819
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825004}
parent 91ff6bb2
...@@ -770,6 +770,7 @@ bool QueryCancellationTraitsImpl(BindStateBase::CancellationQueryMode mode, ...@@ -770,6 +770,7 @@ bool QueryCancellationTraitsImpl(BindStateBase::CancellationQueryMode mode,
functor, std::get<indices>(bound_args)...); functor, std::get<indices>(bound_args)...);
} }
NOTREACHED(); NOTREACHED();
return false;
} }
// Relays |base| to corresponding CallbackCancellationTraits<>::Run(). Returns // Relays |base| to corresponding CallbackCancellationTraits<>::Run(). Returns
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment