From a3a18202c3465e47675d0df0e303e8f76791e986 Mon Sep 17 00:00:00 2001 From: Wes McKinney Date: Mon, 1 Aug 2022 17:41:26 -0500 Subject: [PATCH] Fix compiler warning on gcc 4.x --- cpp/src/arrow/compute/kernels/util_internal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/compute/kernels/util_internal.cc b/cpp/src/arrow/compute/kernels/util_internal.cc index d3a45c2e17d55..513d88f80b1d3 100644 --- a/cpp/src/arrow/compute/kernels/util_internal.cc +++ b/cpp/src/arrow/compute/kernels/util_internal.cc @@ -199,7 +199,7 @@ struct PhysicalTypeVisitor { } // namespace const DataType* GetPhysicalType(const DataType* real_type) { - PhysicalTypeVisitor visitor{real_type, {}}; + PhysicalTypeVisitor visitor{real_type, nullptr}; ARROW_CHECK_OK(VisitTypeInline(*real_type, &visitor)); return visitor.result; }