Identical inner if
condition is always true.
if(zi->ci.method == Z_DEFLATED)
Too many #ifdef configurations - cppcheck only checks 12 of 15 configurations. Use --force to check all configurations.
}
The scope of the variable dataSize
can be reduced.
short dataSize;
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
uSizeFile = ZTELL64(*pzlib_filefunc_def,filestream);
Variable err
is reassigned a value before the old one has been used.
err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)CompressedSize,8);
Variable p
is assigned a value that is never used.
p += 8;
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
if (ZSEEK64(*pzlib_filefunc_def,filestream,0,ZLIB_FILEFUNC_SEEK_END) != 0)
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
if (ZSEEK64(*pzlib_filefunc_def,filestream, relativeOffset,ZLIB_FILEFUNC_SEEK_SET)!=0)
Variable bBreak
is modified but its new value is never used.
bBreak++;
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
if (ZSEEK64(*pzlib_filefunc_def,filestream,uReadPos,ZLIB_FILEFUNC_SEEK_SET)!=0)
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
if (ZSEEK64(*pzlib_filefunc_def,filestream,uReadPos,ZLIB_FILEFUNC_SEEK_SET)!=0)
Variable err
is reassigned a value before the old one has been used.
err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)DataSize,2);
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
if (ZSEEK64(*pzlib_filefunc_def,filestream,0,ZLIB_FILEFUNC_SEEK_END) != 0)
Variable err
is reassigned a value before the old one has been used.
err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)UncompressedSize,8);
Variable err
is reassigned a value before the old one has been used.
err=deflate(&zi->ci.stream, Z_FINISH);
The scope of the variable header
can be reduced.
short header;
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
uSizeFile = ZTELL64(*pzlib_filefunc_def,filestream);
Variable err
is reassigned a value before the old one has been used.
err=BZ2_bzCompress(&zi->ci.bstream, BZ_FINISH);
Redundant pointer operation on pzlib_filefunc_def
- it`s already a pointer.
if (ZSEEK64(*pzlib_filefunc_def,filestream, uPosFound,ZLIB_FILEFUNC_SEEK_SET)!=0)
Condition password!=NULL
is always false
if (password != NULL)
The function zipOpen
is never used.
extern zipFile ZEXPORT zipOpen (const char* pathname, int append)
The function zipOpenNewFileInZip64
is never used.
extern int ZEXPORT zipOpenNewFileInZip64 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
The function zipOpenNewFileInZip
is never used.
extern int ZEXPORT zipOpenNewFileInZip (zipFile file, const char* filename, const zip_fileinfo* zipfi,
The function zipOpenNewFileInZip4
is never used.
extern int ZEXPORT zipOpenNewFileInZip4 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
The function zipOpenNewFileInZip2_64
is never used.
extern int ZEXPORT zipOpenNewFileInZip2_64(zipFile file, const char* filename, const zip_fileinfo* zipfi,
The function zipOpen2
is never used.
extern zipFile ZEXPORT zipOpen2 (const char *pathname, int append, zipcharpc* globalcomment, zlib_filefunc_def* pzlib_filefunc32_def)
The function zipRemoveExtraInfoBlock
is never used.
extern int ZEXPORT zipRemoveExtraInfoBlock (char* pData, int* dataLen, short sHeader)
The function zipOpenNewFileInZip2
is never used.
extern int ZEXPORT zipOpenNewFileInZip2(zipFile file, const char* filename, const zip_fileinfo* zipfi,
The function zipOpenNewFileInZip3
is never used.
extern int ZEXPORT zipOpenNewFileInZip3 (zipFile file, const char* filename, const zip_fileinfo* zipfi,
There are no issues that match your filters.