mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
fixed some warnings when compiling with -O3
svn path=/trunk/; revision=16940
This commit is contained in:
parent
73113cc87d
commit
0bd9fc8ef1
14 changed files with 26 additions and 8 deletions
|
@ -288,6 +288,7 @@ GetNameAndArgumentsFromDb(char Line[],
|
|||
|
||||
/* Skip this entry */
|
||||
*NtSyscallName = NULL;
|
||||
*SyscallArguments = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -336,7 +337,10 @@ CreateStubs(FILE * SyscallDb,
|
|||
|
||||
/* 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 @@ CreateSystemServiceTable(FILE *SyscallDb,
|
|||
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++;
|
||||
|
|
|
@ -759,9 +759,9 @@ int main(int argc, char* argv[])
|
|||
ULONG StabsLength;
|
||||
void *StabStringBase;
|
||||
ULONG StabStringsLength;
|
||||
void *CoffBase;
|
||||
void *CoffBase = NULL;
|
||||
ULONG CoffsLength;
|
||||
void *CoffStringBase;
|
||||
void *CoffStringBase = NULL;
|
||||
ULONG CoffStringsLength;
|
||||
char* path1;
|
||||
char* path2;
|
||||
|
|
|
@ -627,8 +627,8 @@ static void write_typeformatstring(type_t *iface)
|
|||
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 @@ static void unmarshall_out_arguments(func_t *func, unsigned int *type_offset)
|
|||
|
||||
default:
|
||||
error("%s:%d Unknown/unsupported type 0x%x\n",
|
||||
__FUNCTION__,__LINE__, var->type->type);
|
||||
__FUNCTION__,__LINE__, def->type->type);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1385,7 +1385,7 @@ static void marshall_out_arguments(func_t *func, unsigned int *type_offset)
|
|||
|
||||
default:
|
||||
error("%s:%d Unknown/unsupported type 0x%x\n",
|
||||
__FUNCTION__,__LINE__, var->type->type);
|
||||
__FUNCTION__,__LINE__, def->type->type);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#if !defined(WIN32)
|
||||
#undef strdup
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in a new issue