1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

core,objdetects,dnn,features2d: fix build warnings with GCC 16

This commit is contained in:
Kumataro
2026-05-02 10:25:48 +09:00
parent 10dad24385
commit 28b1f54468
6 changed files with 25 additions and 15 deletions
@@ -204,12 +204,13 @@ void CV_DetectorTest::run( int )
// write image filenames
validationFS << IMAGE_FILENAMES << "[";
vector<string>::const_iterator it = imageFilenames.begin();
for( int ii = 0; it != imageFilenames.end(); ++it, ii++ )
// int ii = 0;
for( const auto& filename : imageFilenames )
{
//String buf = cv::format("img_%d", ii);
//cvWriteComment( validationFS.fs, buf, 0 );
validationFS << *it;
validationFS << filename;
//ii++;
}
validationFS << "]"; // IMAGE_FILENAMES