You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/09/02 06:17:09 UTC
[doris] branch dev-1.1.2 updated: [dev-1.1.2][fix](clang) fix clang compile warning: variable-sized object may not be initialized (#12295)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
new 3edfa77bb1 [dev-1.1.2][fix](clang) fix clang compile warning: variable-sized object may not be initialized (#12295)
3edfa77bb1 is described below
commit 3edfa77bb117887bd1e2ff547c914d841a2fcb46
Author: TengJianPing <18...@users.noreply.github.com>
AuthorDate: Fri Sep 2 14:17:02 2022 +0800
[dev-1.1.2][fix](clang) fix clang compile warning: variable-sized object may not be initialized (#12295)
---
be/src/vec/exec/join/vhash_join_node.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/exec/join/vhash_join_node.cpp b/be/src/vec/exec/join/vhash_join_node.cpp
index a1308f57a9..88f8fa5d95 100644
--- a/be/src/vec/exec/join/vhash_join_node.cpp
+++ b/be/src/vec/exec/join/vhash_join_node.cpp
@@ -200,7 +200,8 @@ struct ProcessHashTableProbe {
}
}
} else {
- bool need_nullable_convert[column_length] = {false};
+ bool need_nullable_convert[column_length];
+ memset(need_nullable_convert, 0, column_length);
for (int i = 0; i < column_length; ++i) {
if (output_slot_flags[i] && !_build_blocks.empty()) {
need_nullable_convert[i] =
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org