Merge pull request #12655 from alalek:fix_printf_format_warning

pull/12609/merge
Alexander Alekhin 6 years ago
commit 852f061b26
  1. 4
      modules/dnn/src/layers/permute_layer.cpp

@ -383,9 +383,9 @@ public:
std::shared_ptr<InferenceEngine::CNNLayer> ieLayer(new InferenceEngine::CNNLayer(lp)); std::shared_ptr<InferenceEngine::CNNLayer> ieLayer(new InferenceEngine::CNNLayer(lp));
CV_Assert(!_order.empty()); CV_Assert(!_order.empty());
ieLayer->params["order"] = format("%d", _order[0]); ieLayer->params["order"] = format("%zu", _order[0]);
for (int i = 1; i < _order.size(); ++i) for (int i = 1; i < _order.size(); ++i)
ieLayer->params["order"] += format(",%d", _order[i]); ieLayer->params["order"] += format(",%zu", _order[i]);
return Ptr<BackendNode>(new InfEngineBackendNode(ieLayer)); return Ptr<BackendNode>(new InfEngineBackendNode(ieLayer));
#endif // HAVE_INF_ENGINE #endif // HAVE_INF_ENGINE

Loading…
Cancel
Save