commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r898652 - /commons/sandbox/runtime/trunk/src/main/native/shared/args.c
Date Wed, 13 Jan 2010 05:31:01 GMT
Author: mturk
Date: Wed Jan 13 05:31:00 2010
New Revision: 898652

URL: http://svn.apache.org/viewvc?rev=898652&view=rev
Log:
Fix compile warnings

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/args.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/args.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/args.c?rev=898652&r1=898651&r2=898652&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/args.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/args.c Wed Jan 13 05:31:00 2010
@@ -54,7 +54,6 @@
     return NULL;
 }
 
-#if defined(WIN32)
 static wchar_t *wcspbrk_s(const wchar_t *s1, const wchar_t *s2)
 {
     const wchar_t *scanp;
@@ -78,7 +77,6 @@
     }
     return NULL;
 }
-#endif
 
 /* Expand $(FOO) or ${FOO} to ACR_GetEnv("FOO")
  * Do not expand if the $(FOO) is enclosed inside
@@ -109,7 +107,6 @@
     /* Loop for each unescaped $ */
     while (var_pos) {
         int wch = 0;
-        int sch = *(var_pos);
         int bch = *(var_pos + 1);
         var_end = NULL;
         var_rep = NULL;
@@ -220,7 +217,6 @@
     /* Loop for each unescaped $ */
     while (var_pos) {
         wchar_t wch = 0;
-        wchar_t sch = *(var_pos);
         wchar_t bch = *(var_pos + 1);
         var_end = NULL;
         var_rep = NULL;
@@ -900,3 +896,4 @@
         len++;
     qsort((void *)&args, len, sizeof(wchar_t *), _wcscompare);
 }
+



Mime
View raw message