mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #28569 from Kumataro:fix28568
imgproc: fix -Wstringop-overflow false-positive in minEnclosingConvexPolygon
This commit is contained in:
@@ -913,6 +913,7 @@ std::vector<Side> Chains::reconstructHSidedChain(int h, int i, int j)
|
||||
std::vector<Side> Chains::findKSides(int k, int i, int j)
|
||||
{
|
||||
std::vector<Side> sides;
|
||||
sides.reserve(k); // Optimization and avoiding GCC's false positive warning (-Wstringop-overflow)
|
||||
sides.push_back({i, true});
|
||||
sides.push_back({j, true});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user