fixed some warnings when compiling with -O3

svn path=/trunk/; revision=16940
This commit is contained in:
Thomas Bluemel 2005-08-01 10:21:20 +00:00
parent 73113cc87d
commit 0bd9fc8ef1
14 changed files with 26 additions and 8 deletions

View file

@ -288,6 +288,7 @@ GetNameAndArgumentsFromDb(char Line[],
/* Skip this entry */ /* Skip this entry */
*NtSyscallName = NULL; *NtSyscallName = NULL;
*SyscallArguments = NULL;
} }
} }
@ -336,7 +337,10 @@ CreateStubs(FILE * SyscallDb,
/* Extract the Name and Arguments */ /* Extract the Name and Arguments */
GetNameAndArgumentsFromDb(Line, &NtSyscallName, &SyscallArguments); 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 */ /* Make sure we really extracted something */
if (NtSyscallName) { if (NtSyscallName) {
@ -458,7 +462,10 @@ CreateSystemServiceTable(FILE *SyscallDb,
if (SyscallId > 0) fprintf(SyscallTable,",\n"); if (SyscallId > 0) fprintf(SyscallTable,",\n");
/* Write the syscall arguments in the argument table. */ /* 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 */ /* Only increase if we actually added something */
SyscallId++; SyscallId++;

View file

@ -759,9 +759,9 @@ int main(int argc, char* argv[])
ULONG StabsLength; ULONG StabsLength;
void *StabStringBase; void *StabStringBase;
ULONG StabStringsLength; ULONG StabStringsLength;
void *CoffBase; void *CoffBase = NULL;
ULONG CoffsLength; ULONG CoffsLength;
void *CoffStringBase; void *CoffStringBase = NULL;
ULONG CoffStringsLength; ULONG CoffStringsLength;
char* path1; char* path1;
char* path2; char* path2;

View file

@ -627,8 +627,8 @@ static void write_typeformatstring(type_t *iface)
static void print_message_buffer_size(func_t *func, unsigned int *type_offset) static void print_message_buffer_size(func_t *func, unsigned int *type_offset)
{ {
unsigned int local_type_offset = *type_offset; unsigned int local_type_offset = *type_offset;
unsigned int alignment; unsigned int alignment = 0;
int size; int size = 0;
int last_size = -1; int last_size = -1;
int in_attr; int in_attr;
int out_attr; int out_attr;
@ -1381,7 +1381,7 @@ static void unmarshall_out_arguments(func_t *func, unsigned int *type_offset)
default: default:
error("%s:%d Unknown/unsupported type 0x%x\n", error("%s:%d Unknown/unsupported type 0x%x\n",
__FUNCTION__,__LINE__, var->type->type); __FUNCTION__,__LINE__, def->type->type);
return; return;
} }

View file

@ -1385,7 +1385,7 @@ static void marshall_out_arguments(func_t *func, unsigned int *type_offset)
default: default:
error("%s:%d Unknown/unsupported type 0x%x\n", error("%s:%d Unknown/unsupported type 0x%x\n",
__FUNCTION__,__LINE__, var->type->type); __FUNCTION__,__LINE__, def->type->type);
return; return;
} }

View file

@ -20,12 +20,14 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif

View file

@ -23,6 +23,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>

View file

@ -23,6 +23,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>

View file

@ -23,6 +23,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <ctype.h> #include <ctype.h>

View file

@ -19,6 +19,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>

View file

@ -19,6 +19,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -23,6 +23,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>

View file

@ -23,6 +23,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>

View file

@ -19,6 +19,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#if !defined(WIN32) #if !defined(WIN32)
#undef strdup #undef strdup

View file

@ -20,6 +20,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <time.h> #include <time.h>
#include <stdlib.h> #include <stdlib.h>