fixed some warnings when compiling with -O3
Modified: trunk/reactos/tools/nci/ncitool.c
Modified: trunk/reactos/tools/rsym.c
Modified: trunk/reactos/tools/widl/client.c
Modified: trunk/reactos/tools/widl/server.c
Modified: trunk/reactos/tools/winebuild/import.c
Modified: trunk/reactos/tools/winebuild/main.c
Modified: trunk/reactos/tools/winebuild/parser.c
Modified: trunk/reactos/tools/winebuild/relay.c
Modified: trunk/reactos/tools/winebuild/res16.c
Modified: trunk/reactos/tools/winebuild/res32.c
Modified: trunk/reactos/tools/winebuild/spec16.c
Modified: trunk/reactos/tools/winebuild/spec32.c
Modified: trunk/reactos/tools/winebuild/utils.c
Modified: trunk/reactos/tools/wpp/wpp.c

Modified: trunk/reactos/tools/nci/ncitool.c
--- trunk/reactos/tools/nci/ncitool.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/nci/ncitool.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -288,6 +288,7 @@
     
         /* Skip this entry */
         *NtSyscallName = NULL;
+        *SyscallArguments = NULL;
     }
 }
 
@@ -336,7 +337,10 @@
              
         /* Extract the Name and Arguments */
         GetNameAndArgumentsFromDb(Line, &NtSyscallName, &SyscallArguments); 
-        StackBytes = ARGS_TO_BYTES(strtoul(SyscallArguments, NULL, 0));
+        if (SyscallArguments != NULL)
+            StackBytes = ARGS_TO_BYTES(strtoul(SyscallArguments, NULL, 0));
+        else
+            StackBytes = 0;
  
         /* Make sure we really extracted something */
         if (NtSyscallName) {
@@ -458,7 +462,10 @@
             if (SyscallId > 0) fprintf(SyscallTable,",\n");
             
             /* Write the syscall arguments in the argument table. */
-            fprintf(SyscallTable,"\t\t%lu * sizeof(void *)",strtoul(SyscallArguments, NULL, 0));
+            if (SyscallArguments != NULL)
+                fprintf(SyscallTable,"\t\t%lu * sizeof(void *)",strtoul(SyscallArguments, NULL, 0));
+            else
+                fprintf(SyscallTable,"\t\t0");
                     
             /* Only increase if we actually added something */
             SyscallId++;

Modified: trunk/reactos/tools/rsym.c
--- trunk/reactos/tools/rsym.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/rsym.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -759,9 +759,9 @@
   ULONG StabsLength;
   void *StabStringBase;
   ULONG StabStringsLength;
-  void *CoffBase;
+  void *CoffBase = NULL;
   ULONG CoffsLength;
-  void *CoffStringBase;
+  void *CoffStringBase = NULL;
   ULONG CoffStringsLength;
   char* path1;
   char* path2;

Modified: trunk/reactos/tools/widl/client.c
--- trunk/reactos/tools/widl/client.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/widl/client.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -627,8 +627,8 @@
 static void print_message_buffer_size(func_t *func, unsigned int *type_offset)
 {
     unsigned int local_type_offset = *type_offset;
-    unsigned int alignment;
-    int size;
+    unsigned int alignment = 0;
+    int size = 0;
     int last_size = -1;
     int in_attr;
     int out_attr;
@@ -1381,7 +1381,7 @@
 
         default:
             error("%s:%d Unknown/unsupported type 0x%x\n",
-                  __FUNCTION__,__LINE__, var->type->type);
+                  __FUNCTION__,__LINE__, def->type->type);
             return;
         }
 

Modified: trunk/reactos/tools/widl/server.c
--- trunk/reactos/tools/widl/server.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/widl/server.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -1385,7 +1385,7 @@
 
         default:
             error("%s:%d Unknown/unsupported type 0x%x\n",
-                  __FUNCTION__,__LINE__, var->type->type);
+                  __FUNCTION__,__LINE__, def->type->type);
             return;
         }
 

Modified: trunk/reactos/tools/winebuild/import.c
--- trunk/reactos/tools/winebuild/import.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/import.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -20,12 +20,14 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <ctype.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdarg.h>
+#include <stdlib.h>
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif

Modified: trunk/reactos/tools/winebuild/main.c
--- trunk/reactos/tools/winebuild/main.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/main.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <assert.h>
 #include <stdio.h>

Modified: trunk/reactos/tools/winebuild/parser.c
--- trunk/reactos/tools/winebuild/parser.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/parser.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <assert.h>
 #include <ctype.h>

Modified: trunk/reactos/tools/winebuild/relay.c
--- trunk/reactos/tools/winebuild/relay.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/relay.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <ctype.h>
 

Modified: trunk/reactos/tools/winebuild/res16.c
--- trunk/reactos/tools/winebuild/res16.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/res16.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -19,6 +19,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <assert.h>
 #include <ctype.h>

Modified: trunk/reactos/tools/winebuild/res32.c
--- trunk/reactos/tools/winebuild/res32.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/res32.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -19,6 +19,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <ctype.h>
 #include <stdlib.h>

Modified: trunk/reactos/tools/winebuild/spec16.c
--- trunk/reactos/tools/winebuild/spec16.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/spec16.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <assert.h>
 #include <ctype.h>

Modified: trunk/reactos/tools/winebuild/spec32.c
--- trunk/reactos/tools/winebuild/spec32.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/spec32.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -23,6 +23,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <assert.h>
 #include <ctype.h>

Modified: trunk/reactos/tools/winebuild/utils.c
--- trunk/reactos/tools/winebuild/utils.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/winebuild/utils.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -19,6 +19,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #if !defined(WIN32)
 #undef strdup

Modified: trunk/reactos/tools/wpp/wpp.c
--- trunk/reactos/tools/wpp/wpp.c	2005-08-01 10:19:22 UTC (rev 16939)
+++ trunk/reactos/tools/wpp/wpp.c	2005-08-01 10:21:20 UTC (rev 16940)
@@ -20,6 +20,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <time.h>
 #include <stdlib.h>