This is an automated email from the ASF dual-hosted git repository. laiyingchun pushed a commit to branch branch-1.17.x in repository https://gitbox.apache.org/repos/asf/kudu.git
commit ae94c78ea00f78079dc64c4f784d3f8a94b4cb14 Author: Alexey Serbin <[email protected]> AuthorDate: Fri Apr 21 12:35:15 2023 -0700 [client] fix clang warning A contemporary CLANG compiler issues the following warning when given a header (.h/.hpp) file as input: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated] There are no functional changes in this patch; it just addresses the compiler's warning. Change-Id: Iae586b683e06a6af1e44c9859769309d3b6a1a94 Reviewed-on: http://gerrit.cloudera.org:8080/19781 Tested-by: Kudu Jenkins Reviewed-by: Abhishek Chennaka <[email protected]> Reviewed-on: http://gerrit.cloudera.org:8080/19946 Reviewed-by: Yingchun Lai <[email protected]> Reviewed-by: Yuqi Du <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> --- src/kudu/client/client_examples-test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kudu/client/client_examples-test.sh b/src/kudu/client/client_examples-test.sh index 226701fe2..8bf08ddbc 100755 --- a/src/kudu/client/client_examples-test.sh +++ b/src/kudu/client/client_examples-test.sh @@ -117,10 +117,12 @@ popd for include_file in $(find "$LIBRARY_DIR" -name \*.h) ; do echo Checking standalone compilation of "$include_file"... if ! ${CXX:-g++} \ + -c \ -o /dev/null \ + -x c++ \ -std=c++98 \ - -I"$LIBRARY_DIR/usr/local/include" \ - "$include_file" ; then + -I"$LIBRARY_DIR/usr/local/include" - \ + < "$include_file" ; then set +x echo echo -----------------------------------------
