From 2e48a0bce0cfb1937f4793796b26fc2f08b1af22 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Wed, 14 Jun 2023 22:14:51 -0700 Subject: [PATCH] Remove designated initializers PiperOrigin-RevId: 540471772 --- mediapipe/util/tflite/op_resolver.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mediapipe/util/tflite/op_resolver.cc b/mediapipe/util/tflite/op_resolver.cc index 44eff4566..dc8728334 100644 --- a/mediapipe/util/tflite/op_resolver.cc +++ b/mediapipe/util/tflite/op_resolver.cc @@ -58,7 +58,8 @@ TfLiteRegistration* RegisterMaxPoolingWithArgmax2D() { }); return r; }(); - static TfLiteRegistration reg = {.registration_external = reg_external}; + static TfLiteRegistration reg{}; + reg.registration_external = reg_external; return ® } @@ -68,7 +69,8 @@ TfLiteRegistration* RegisterMaxUnpooling2D() { TfLiteRegistrationExternalCreate(kTfLiteBuiltinCustom, kMaxUnpooling2DOpName, kMaxUnpooling2DOpVersion); - static TfLiteRegistration reg = {.registration_external = reg_external}; + static TfLiteRegistration reg{}; + reg.registration_external = reg_external; return ® } @@ -78,7 +80,8 @@ TfLiteRegistration* RegisterConvolution2DTransposeBias() { TfLiteRegistrationExternalCreate(kTfLiteBuiltinCustom, kConvolution2DTransposeBiasOpName, kConvolution2DTransposeBiasOpVersion); - static TfLiteRegistration reg = {.registration_external = reg_external}; + static TfLiteRegistration reg{}; + reg.registration_external = reg_external; return ® }