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 ® }