summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorGravatar damitha2010-06-23 03:51:42 +0000
committerGravatar damitha2010-06-23 03:51:42 +0000
commit3d12782d16cfeda3874388619f86d26e35fc6786 (patch)
tree908a81667639493a2195fe1e53d9e62878d09d2f /util
parent829fe320c5d770b60af461b9f975802683f3a1d7 (diff)
downloadaxis2c-3d12782d16cfeda3874388619f86d26e35fc6786.tar.gz
axis2c-3d12782d16cfeda3874388619f86d26e35fc6786.tar.bz2
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
Diffstat (limited to 'util')
-rw-r--r--util/include/platforms/unix/axutil_unix.h2
-rw-r--r--util/src/minizip/archive_extract.c2
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)