1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +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
+1 -2
View File
@@ -522,7 +522,6 @@ bool FileStorage::Impl::open(const char *filename_or_buf, int _flags, const char
bool write_base64 = (write_mode || append) && (_flags & FileStorage::BASE64) != 0;
bool isGZ = false;
size_t fnamelen = 0;
std::vector<std::string> params;
//if ( !mem_mode )
@@ -556,7 +555,7 @@ bool FileStorage::Impl::open(const char *filename_or_buf, int _flags, const char
isGZ = true;
compression = dot_pos[3];
if (compression)
dot_pos[3] = '\0', fnamelen--;
dot_pos[3] = '\0';
}
if (!isGZ) {