axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r957101 - in /axis/axis2/c/core/trunk/util: include/platforms/unix/axutil_unix.h src/minizip/archive_extract.c
Date Wed, 23 Jun 2010 03:51:43 GMT
Author: damitha
Date: Wed Jun 23 03:51:42 2010
New Revision: 957101

URL: http://svn.apache.org/viewvc?rev=957101&view=rev
Log:
Removed the error in macro AXIS2_UNZOPEN2 and warning 'unused variable ffunc'

Modified:
    axis/axis2/c/core/trunk/util/include/platforms/unix/axutil_unix.h
    axis/axis2/c/core/trunk/util/src/minizip/archive_extract.c

Modified: axis/axis2/c/core/trunk/util/include/platforms/unix/axutil_unix.h
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/include/platforms/unix/axutil_unix.h?rev=957101&r1=957100&r2=957101&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/include/platforms/unix/axutil_unix.h (original)
+++ axis/axis2/c/core/trunk/util/include/platforms/unix/axutil_unix.h Wed Jun 23 03:51:42
2010
@@ -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)

Modified: axis/axis2/c/core/trunk/util/src/minizip/archive_extract.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/minizip/archive_extract.c?rev=957101&r1=957100&r2=957101&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/minizip/archive_extract.c (original)
+++ axis/axis2/c/core/trunk/util/src/minizip/archive_extract.c Wed Jun 23 03:51:42 2010
@@ -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)



Mime
View raw message