build: GCC12 warnings

This commit is contained in:
Alexander Alekhin
2022-05-15 16:20:45 +00:00
parent 766f58ed7e
commit 89f8d4ae12
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ bool CvCascadeClassifier::train( const string _cascadeDirName,
fs << "}";
}
// save current stage
char buf[10];
char buf[32];
sprintf(buf, "%s%d", "stage", i );
string stageFilename = dirName + buf + ".xml";
FileStorage fs( stageFilename, FileStorage::WRITE );