apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1091274 - /apr/apr/trunk/misc/netware/libprews.c
Date Tue, 12 Apr 2011 01:15:45 GMT
Author: fuankg
Date: Tue Apr 12 01:15:44 2011
New Revision: 1091274

URL: http://svn.apache.org/viewvc?rev=1091274&view=rev
Log:
Blocked pragmas to avoid warnings with other compilers.

Modified:
    apr/apr/trunk/misc/netware/libprews.c

Modified: apr/apr/trunk/misc/netware/libprews.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/misc/netware/libprews.c?rev=1091274&r1=1091273&r2=1091274&view=diff
==============================================================================
--- apr/apr/trunk/misc/netware/libprews.c (original)
+++ apr/apr/trunk/misc/netware/libprews.c Tue Apr 12 01:15:44 2011
@@ -46,13 +46,7 @@ int _NonAppStart
     const char  **messages
 )
 {
-#ifdef USE_WINSOCK
-    WSADATA wsaData;
-#endif
-    apr_status_t status;
-    
-    NX_LOCK_INFO_ALLOC(liblock, "Per-Application Data Lock", 0);
-
+#ifdef __MWERKS__
 #pragma unused(cmdLine)
 #pragma unused(loadDirPath)
 #pragma unused(uninitializedDataLength)
@@ -62,6 +56,13 @@ int _NonAppStart
 #pragma unused(customDataSize)
 #pragma unused(messageCount)
 #pragma unused(messages)
+#endif
+#ifdef USE_WINSOCK
+    WSADATA wsaData;
+#endif
+    apr_status_t status;
+    
+    NX_LOCK_INFO_ALLOC(liblock, "Per-Application Data Lock", 0);
 
     gLibId = register_library(DisposeLibraryData);
 



Mime
View raw message