Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Xcode 9 warnings (still ok in Xcode 10) #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ZipArchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ typedef void(^ZipArchiveProgressUpdateBlock)(int percentage, int filesProcessed,
ZipArchive calls this selector on the delegate when errors are encountered.

@param msg a string describing the error.
@result void
*/

-(void) ErrorMessage:(NSString*) msg;
Expand Down
8 changes: 1 addition & 7 deletions minizip/mztools.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@
WRITE_16((unsigned char*)(buff) + 2, (n) >> 16); \
} while(0)

extern int ZEXPORT unzRepair(file, fileOut, fileOutTmp, nRecovered, bytesRecovered)
const char* file;
const char* fileOut;
const char* fileOutTmp;
uLong* nRecovered;
uLong* bytesRecovered;
{
extern int ZEXPORT unzRepair(const char* file, const char* fileOut, const char* fileOutTmp, uLong* nRecovered, uLong* bytesRecovered) {
int err = Z_OK;
FILE* fpZip = fopen(file, "rb");
FILE* fpOut = fopen(fileOut, "wb");
Expand Down
2 changes: 1 addition & 1 deletion minizip/unzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ extern int ZEXPORT unzGetCurrentFileInfo (unzFile file,
pfile_info->internal_fa = file_info64.internal_fa;
pfile_info->external_fa = file_info64.external_fa;

pfile_info->tmu_date = file_info64.tmu_date,
pfile_info->tmu_date = file_info64.tmu_date;


pfile_info->compressed_size = (uLong)file_info64.compressed_size;
Expand Down