diff options
author | rickyz <rickyz@chromium.org> | 2015-03-17 04:35:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-17 11:36:10 +0000 |
commit | eba228e0f27bef5170764bc2f8a9b7f96e389446 (patch) | |
tree | a2e3575b404951ca08e3915fd40be050b566ad61 /sandbox | |
parent | f884f2da7f6dc8850d34cf95446b78ad87558875 (diff) | |
download | chromium_src-eba228e0f27bef5170764bc2f8a9b7f96e389446.zip chromium_src-eba228e0f27bef5170764bc2f8a9b7f96e389446.tar.gz chromium_src-eba228e0f27bef5170764bc2f8a9b7f96e389446.tar.bz2 |
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}
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/services/credentials.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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<int>(cap); + return 0; } } // namespace. |