Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CV_Resize_Test::resize_1d(....)
- {
- ....
- for (int r = 0; r < cn; ++r)
- {
- xyD[r] = 0;
- for (int k = 0; k < ksize; ++k)
- xyD[r] += w[k] * xyS[k * cn + r];
- xyD[r] = xyD[r];
- }
- ....
- }
- This suspicious code was found in OpenCV project by PVS-Studio static code analyzer.
- Warning message is:
- V570 The 'xyD[r]' variable is assigned to itself. test_imgwarp_strict.cpp 560
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement