diff --git a/mediapipe/framework/api2/port.h b/mediapipe/framework/api2/port.h index d76aa3d2b7..534b490d83 100644 --- a/mediapipe/framework/api2/port.h +++ b/mediapipe/framework/api2/port.h @@ -87,7 +87,7 @@ struct NoneType { template struct SameType { - static constexpr const decltype(kP)& kPort = kP; + static constexpr const decltype(kP) & kPort = kP; }; class PacketTypeAccess; diff --git a/mediapipe/tasks/cc/genai/inference/utils/xnn_utils/pack_weights_cache.cc b/mediapipe/tasks/cc/genai/inference/utils/xnn_utils/pack_weights_cache.cc index a2d014c379..5eb99c96ac 100644 --- a/mediapipe/tasks/cc/genai/inference/utils/xnn_utils/pack_weights_cache.cc +++ b/mediapipe/tasks/cc/genai/inference/utils/xnn_utils/pack_weights_cache.cc @@ -80,7 +80,7 @@ absl::Status PackWeightsCache::Initialize() { cache_provider_.offset_to_addr = (void* (*)(void*, size_t))PackWeightsCache::offset_to_addr; cache_provider_.delete_cache = - (enum xnn_status(*)(void*))PackWeightsCache::delete_cache; + (enum xnn_status (*)(void*))PackWeightsCache::delete_cache; return absl::OkStatus(); }