From eba228e0f27bef5170764bc2f8a9b7f96e389446 Mon Sep 17 00:00:00 2001 From: rickyz Date: Tue, 17 Mar 2015 04:35:27 -0700 Subject: Add return statement to LinuxCapabilityToKernelValue. The return statement should never be reached due to the LOG(FATAL), but some compilers seem to think that it is possible to reach the end of this function. TBR=jln@chromium.org Review URL: https://codereview.chromium.org/1017623003 Cr-Commit-Position: refs/heads/master@{#320895} --- sandbox/linux/services/credentials.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sandbox') diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc index 48cdc0b..2e66d97 100644 --- a/sandbox/linux/services/credentials.cc +++ b/sandbox/linux/services/credentials.cc @@ -120,6 +120,7 @@ int LinuxCapabilityToKernelValue(LinuxCapability cap) { } LOG(FATAL) << "Invalid LinuxCapability: " << static_cast(cap); + return 0; } } // namespace. -- cgit v1.1