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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user