diff --git a/velox/connectors/hive/HivePartitionFunction.cpp b/velox/connectors/hive/HivePartitionFunction.cpp index 9b8887c3f60f..27ee2546e0bd 100644 --- a/velox/connectors/hive/HivePartitionFunction.cpp +++ b/velox/connectors/hive/HivePartitionFunction.cpp @@ -45,6 +45,8 @@ int32_t hashTimestamp(const Timestamp& ts) { return hashInt64((ts.getSeconds() << 30) | ts.getNanos()); } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wreturn-type" template inline uint32_t hashOne( const typename TypeTraits::NativeType& /* value */) { @@ -52,6 +54,7 @@ inline uint32_t hashOne( "Hive partitioning function doesn't support {} type", TypeTraits::name); } +#pragma GCC diagnostic pop template <> inline uint32_t hashOne(const bool& value) {