changeset 24385:b3507ba314e1

warning fixes: win32.c: In function 'expCreateSemaphoreA': win32.c:1751: warning: unused variable 'pp' win32.c: In function 'expGetStartupInfoA': win32.c:2187: warning: unused variable 'i' win32.c: In function 'expLoadLibraryA': win32.c:2298: warning: unused variable 'i' win32.c: In function 'expWritePrivateProfileStringA': win32.c:2786: warning: unused variable 'size' win32.c: In function 'expGetSystemTimeAsFileTime': win32.c:3136: warning: unused variable 'local_tm' win32.c: In function 'expGetEnvironmentVariableA': win32.c:3150: warning: unused variable 'p' win32.c: In function 'LookupExternalByName': win32.c:5371: warning: unused variable 'answ'
author diego
date Mon, 10 Sep 2007 13:03:20 +0000
parents 16d5efcad1f7
children 3a8d72016ed7
files loader/win32.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Mon Sep 10 12:54:32 2007 +0000
+++ b/loader/win32.c	Mon Sep 10 13:03:20 2007 +0000
@@ -1748,8 +1748,8 @@
 {
     pthread_mutex_t *pm;
     pthread_cond_t  *pc;
+    /*
     mutex_list* pp;
-    /*
      printf("CreateSemaphoreA(%p = %s)\n", name, (name ? name : "<null>"));
      pp=mlist;
      while(pp)
@@ -2184,7 +2184,6 @@
 
 static int WINAPI expGetStartupInfoA(STARTUPINFOA *s)
 {
-    int i;
     dbgprintf("GetStartupInfoA(0x%x) => 1\n");
     memset(s, 0, sizeof(*s));
     s->cb=sizeof(*s);
@@ -2295,7 +2294,6 @@
 {
     int result = 0;
     char* lastbc;
-    int i;
     if (!name)
 	return -1;
     // we skip to the last backslash
@@ -2783,7 +2781,6 @@
 						const char* string,
 						const char* filename)
 {
-    int size=256;
     char* fullname;
     dbgprintf("WritePrivateProfileStringA('%s', '%s', '%s', '%s')", appname, keyname, string, filename );
     if(!(appname && keyname && filename) )
@@ -3133,7 +3130,6 @@
 #define SECS_1601_TO_1970  ((369 * 365 + 89) * 86400ULL)
 static void WINAPI expGetSystemTimeAsFileTime(FILETIME* systime)
 {
-    struct tm *local_tm;
     struct timeval tv;
     unsigned long long secs;
 
@@ -3147,7 +3143,7 @@
 
 static int WINAPI expGetEnvironmentVariableA(const char* name, char* field, int size)
 {
-    char *p;
+    //char *p;
     //    printf("%s %x %x\n", name, field, size);
     if(field)field[0]=0;
     /*
@@ -5368,7 +5364,6 @@
 
 void* LookupExternalByName(const char* library, const char* name)
 {
-    char* answ;
     int i,j;
     //   return (void*)ext_unknown;
     if(library==0)