You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by aw...@apache.org on 2019/04/09 20:39:09 UTC

[kudu] 01/04: row_operations: suppress a gcc warning

This is an automated email from the ASF dual-hosted git repository.

awong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit 73fa1f89b450aa979add6c08b7ffe621bb6c920a
Author: Adar Dembo <ad...@cloudera.com>
AuthorDate: Wed Apr 3 17:50:15 2019 -0700

    row_operations: suppress a gcc warning
    
    I couldn't get this one to budge with pragma suppressions, so I added a
    default value instead.
    
    Change-Id: I606958b25e8cd02bcf610a52e6c35b618f9f9788
    Reviewed-on: http://gerrit.cloudera.org:8080/12943
    Reviewed-by: Grant Henke <gr...@apache.org>
    Tested-by: Kudu Jenkins
---
 src/kudu/common/row_operations.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kudu/common/row_operations.cc b/src/kudu/common/row_operations.cc
index 226cb1e..952b56c 100644
--- a/src/kudu/common/row_operations.cc
+++ b/src/kudu/common/row_operations.cc
@@ -581,7 +581,7 @@ Status RowOperationsPBDecoder::DecodeOperations(vector<DecodedRowOperation>* ops
   SetupPrototypeRow(*tablet_schema_, &prototype_row);
 
   while (HasNext()) {
-    RowOperationsPB::Type type;
+    RowOperationsPB::Type type = RowOperationsPB::UNKNOWN;
     RETURN_NOT_OK(ReadOpType(&type));
     DecodedRowOperation op;
     op.type = type;