Commit 65b0b319 authored by Alexander Alekhin's avatar Alexander Alekhin

eliminate MSVS2017 build warning

modules\dnn\src\layers\prior_box_layer.cpp(208): warning C4834: discarding return value of function with 'nodiscard' attribute
parent 4934f7c5
...@@ -205,7 +205,9 @@ public: ...@@ -205,7 +205,9 @@ public:
if (_explicitSizes) if (_explicitSizes)
{ {
CV_Assert(_aspectRatios.empty(), !params.has("min_size"), !params.has("max_size")); CV_Assert(_aspectRatios.empty());
CV_Assert(!params.has("min_size"));
CV_Assert(!params.has("max_size"));
_boxWidths = widths; _boxWidths = widths;
_boxHeights = heights; _boxHeights = heights;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment