Skip to content

Commit

Permalink
fix debug build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xin-zhang2 committed Mar 4, 2025
1 parent 15aaf7b commit d947235
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion velox/functions/prestosql/tests/ArrayCombinationsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class ArrayCombinationsTest : public FunctionBaseTest {
{{
{{0, 1, std::nullopt, 3}},
}},
{{}},
std::make_optional<
std::vector<std::optional<std::vector<std::optional<T>>>>>({}),
});
testExpr(
expected, "combinations(C0, C1)", {arrayVector, comboLengthVector});
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/prestosql/tests/JsonCastTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ TEST_F(JsonCastTest, toNested) {
auto arrayExpected = makeNullableNestedArrayVector<StringView>(
{{{{{"1"_sv, "2"_sv}}, {{"3"_sv}}}},
{{{{std::nullopt, std::nullopt, "4"_sv}}}},
{{{{}}}},
{{std::make_optional<std::vector<std::optional<StringView>>>({})}},
std::make_optional<
std::vector<std::optional<std::vector<std::optional<StringView>>>>>(
{})});
Expand Down
2 changes: 1 addition & 1 deletion velox/vector/fuzzer/VectorFuzzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class VectorFuzzer {
fuzzer::DataSpec dataSpec{false, false};
};

//
// Spurious warnings in GCC 13
VELOX_SUPPRESS_STRINGOP_OVERFLOW_WARNING
VectorFuzzer(
const VectorFuzzer::Options& options,
Expand Down

0 comments on commit d947235

Please sign in to comment.