diff --git a/cpp/src/parquet/geospatial/util_internal_test.cc b/cpp/src/parquet/geospatial/util_internal_test.cc index e9788d32137d..96f90b64b594 100644 --- a/cpp/src/parquet/geospatial/util_internal_test.cc +++ b/cpp/src/parquet/geospatial/util_internal_test.cc @@ -507,14 +507,19 @@ INSTANTIATE_TEST_SUITE_P( struct MakeWKBPointTestCase { std::vector xyzm; - bool has_z; - bool has_m; + bool has_z{}; + bool has_m{}; }; +std::ostream& operator<<(std::ostream& os, const MakeWKBPointTestCase& obj) { + os << "MakeWKBPointTestCase"; + return os; +} + class MakeWKBPointTestFixture : public testing::TestWithParam {}; TEST_P(MakeWKBPointTestFixture, MakeWKBPoint) { - auto param = GetParam(); + const auto& param = GetParam(); std::string wkb = test::MakeWKBPoint(param.xyzm, param.has_z, param.has_m); WKBGeometryBounder bounder; ASSERT_NO_THROW(bounder.MergeGeometry(wkb));