You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/02/27 06:19:51 UTC
[doris] branch master updated: [Bug](build) fix compile fail on unused value #17165
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 0723e55f76 [Bug](build) fix compile fail on unused value #17165
0723e55f76 is described below
commit 0723e55f7616dcb1e6a5b35278cf8eacfddc3bb0
Author: Pxl <px...@qq.com>
AuthorDate: Mon Feb 27 14:19:44 2023 +0800
[Bug](build) fix compile fail on unused value #17165
error: variable 'nullcount' set but not used [-Werror,-Wunused-but-set-variable]
int nullcount = 0;
---
be/src/vec/exec/format/json/new_json_reader.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/exec/format/json/new_json_reader.cpp b/be/src/vec/exec/format/json/new_json_reader.cpp
index ff0365f330..d409ec1e2e 100644
--- a/be/src/vec/exec/format/json/new_json_reader.cpp
+++ b/be/src/vec/exec/format/json/new_json_reader.cpp
@@ -1388,9 +1388,9 @@ Status NewJsonReader::_simdjson_set_column_value(simdjson::ondemand::object* val
for (size_t i = 0; i < columns.size(); ++i) {
DCHECK_EQ(columns[i]->size(), cur_row_count + 1);
}
+#endif
// There is at least one valid value here
DCHECK(nullcount < columns.size());
-#endif
*valid = true;
return Status::OK();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org