kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject kudu git commit: ksck: quell build warning
Date Wed, 17 Oct 2018 22:28:30 GMT
Repository: kudu
Updated Branches:
  refs/heads/master fbe43129f -> 36d09f187


ksck: quell build warning

Was seeing:
../../src/kudu/tools/ksck_checksum.cc:677:1: warning: control reaches end of non-void function
[-Wreturn-type]

Change-Id: I696ff790111cc0b371dbb762a3c5167d834136f7
Reviewed-on: http://gerrit.cloudera.org:8080/11661
Reviewed-by: Will Berkeley <wdberkeley@gmail.com>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/36d09f18
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/36d09f18
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/36d09f18

Branch: refs/heads/master
Commit: 36d09f1876a7a1c9bd27f71b194e61aebd5237c9
Parents: fbe4312
Author: Andrew Wong <awong@cloudera.com>
Authored: Thu Oct 11 14:38:56 2018 -0700
Committer: Adar Dembo <adar@cloudera.com>
Committed: Wed Oct 17 22:28:13 2018 +0000

----------------------------------------------------------------------
 src/kudu/tools/ksck_checksum.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/36d09f18/src/kudu/tools/ksck_checksum.cc
----------------------------------------------------------------------
diff --git a/src/kudu/tools/ksck_checksum.cc b/src/kudu/tools/ksck_checksum.cc
index f41efc7..c87211c 100644
--- a/src/kudu/tools/ksck_checksum.cc
+++ b/src/kudu/tools/ksck_checksum.cc
@@ -674,6 +674,8 @@ Status KsckChecksummer::ChecksumData(const KsckChecksumOptions& opts,
                       num_results, num_replicas);
       return s;
   }
+  LOG(FATAL) << "Reached unreachable section";
+  return Status::RuntimeError("Unreachable statement"); // Suppress compiler warnings.
 }
 
 } // namespace tools


Mime
View raw message