From 3d12782d16cfeda3874388619f86d26e35fc6786 Mon Sep 17 00:00:00 2001 From: damitha Date: Wed, 23 Jun 2010 03:51:42 +0000 Subject: Removed the error in macro AXIS2_UNZOPEN2 and warning 'unused variable ffunc' git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@957101 13f79535-47bb-0310-9956-ffa450edef68 --- util/include/platforms/unix/axutil_unix.h | 2 +- util/src/minizip/archive_extract.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/include/platforms/unix/axutil_unix.h b/util/include/platforms/unix/axutil_unix.h index bb3c08f..3745ed7 100644 --- a/util/include/platforms/unix/axutil_unix.h +++ b/util/include/platforms/unix/axutil_unix.h @@ -262,7 +262,7 @@ extern "C" /** minizip functions */ #define axis2_fill_win32_filefunc(ffunc) -#define AXIS2_UNZOPEN2(zipfilename,ffunc) do { unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); } while (0) +#define AXIS2_UNZOPEN2(zipfilename,ffunc) "do { unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); } while (0)" /** * handling variable number of arguments (for log.c) diff --git a/util/src/minizip/archive_extract.c b/util/src/minizip/archive_extract.c index dd68efb..7a0d7fe 100644 --- a/util/src/minizip/archive_extract.c +++ b/util/src/minizip/archive_extract.c @@ -266,7 +266,7 @@ aar_extract( filename_try[MAXFILENAME] = '\0'; axis2_fill_win32_filefunc(&ffunc); - + ((void)(ffunc)); /* Just to avoid unused variable warning */ uf = AXIS2_UNZOPEN2(zipfilename, ffunc); if (uf == NULL) -- cgit v1.1-32-gdbae