diff --git a/3rdparty/include/penguin-stats-recognize/depot.hpp b/3rdparty/include/penguin-stats-recognize/depot.hpp index 704a51de9d..6e7d46798e 100644 --- a/3rdparty/include/penguin-stats-recognize/depot.hpp +++ b/3rdparty/include/penguin-stats-recognize/depot.hpp @@ -16,7 +16,6 @@ using dict = nlohmann::ordered_json; namespace penguin { - enum CircleFlags { X = 0, @@ -37,7 +36,7 @@ public: _get_item_list(); return *this; } - const dict report(bool debug = false) + const dict report([[maybe_unused]] bool debug = false) { dict _report = dict::object(); return _report; @@ -113,7 +112,7 @@ private: } } } - _item_diameter = round(cv::mean(item_circles)[R] * 2); + _item_diameter = static_cast(round(cv::mean(item_circles)[R] * 2)); for (const cv::Vec3i& c : item_circles) { @@ -128,7 +127,7 @@ private: // show_img(img_blur); int radius = _item_diameter / 2; - int offset = radius * 1.2; + int offset = static_cast(radius * 1.2); ItemTemplates templs; for (const cv::Vec3i& c : item_circles) { @@ -157,7 +156,6 @@ private: // show_img(_img_ext); } }; - } // namespace penguin -#endif // PENGUIN_DEPOT_HPP_ +#endif // PENGUIN_DEPOT_HPP_ \ No newline at end of file