mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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 */
|
/* 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++;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "wine/port.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "wine/port.h"
|
||||||
|
|
||||||
#if !defined(WIN32)
|
#if !defined(WIN32)
|
||||||
#undef strdup
|
#undef strdup
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue