Yingchun Lai has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19244


Change subject: [build] mute some build complains
......................................................................

[build] mute some build complains

Mute some build complains on CentOS 7.5.1804, GCC 7.3.1 by:
1. Using memcpy instead of strncpy to mute build warning:
   warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before 
terminating nul copying as many bytes from a string as its length 
[-Wstringop-truncation]
     return strncpy(result, the_string, max_length);
            ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2. Using if-statement instead of ternary operator to mute warning:
   warning: ‘iftmp.3695’ may be used uninitialized in this function 
[-Wmaybe-uninitialized]
     update_immu_col_to_null_ ? nullopt : optional<int>(999));
                                                            ^

Change-Id: I690a27d6afdad00a57587892cacc2ad245a7d342
---
M src/kudu/client/client-test.cc
M src/kudu/gutil/strings/util.cc
2 files changed, 11 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/44/19244/1
--
To view, visit http://gerrit.cloudera.org:8080/19244
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I690a27d6afdad00a57587892cacc2ad245a7d342
Gerrit-Change-Number: 19244
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <[email protected]>

Reply via email to