patch for -Werror -Wall by jonathan wilson

svn path=/trunk/; revision=6701
This commit is contained in:
Vizzini 2003-11-19 05:53:38 +00:00
parent d60d0aa990
commit fa60c511c7
8 changed files with 16 additions and 13 deletions

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1 2003/07/11 18:13:57 chorns Exp $
# $Id: Makefile,v 1.2 2003/11/19 05:53:37 vizzini Exp $
PATH_TO_TOP = ../..
@ -10,7 +10,7 @@ TARGET_NAME = kmregtests
TARGET_LIBS = $(SDK_PATH_LIB)/rtshared.a
TARGET_CFLAGS = -I../shared
TARGET_CFLAGS = -I../shared -Werror -Wall
TARGET_GENREGTESTS = yes

View file

@ -149,7 +149,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
{
PDEVICE_OBJECT DeviceObject;
UNICODE_STRING DeviceName;
UNICODE_STRING DosName;
NTSTATUS Status;
/* Register driver routines */

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1 2003/07/11 18:13:57 chorns Exp $
# $Id: Makefile,v 1.2 2003/11/19 05:53:37 vizzini Exp $
PATH_TO_TOP = ../..
@ -10,7 +10,7 @@ TARGET_NAME = kmrtint
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_CFLAGS = -I../shared -I../kmregtests
TARGET_CFLAGS = -I../shared -I../kmregtests -Werror -Wall
TARGET_BASE = 0x50000000

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1 2003/07/11 18:13:57 chorns Exp $
# $Id: Makefile,v 1.2 2003/11/19 05:53:37 vizzini Exp $
PATH_TO_TOP = ../..
@ -12,7 +12,7 @@ TARGET_NAME = regtests
TARGET_SDKLIBS = rtshared.a ntdll.a kernel32.a
TARGET_CFLAGS = -I../shared
TARGET_CFLAGS = -I../shared -Wall -Werror
TARGET_OBJECTS = \
regtests.o

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1 2003/07/11 18:13:57 chorns Exp $
# $Id: Makefile,v 1.2 2003/11/19 05:53:38 vizzini Exp $
PATH_TO_TOP = ../..
@ -8,6 +8,8 @@ TARGET_TYPE = library
TARGET_NAME = rtshared
TARGET_CFLAGS = -Wall -Werror
TARGET_OBJECTS = \
regtests.o

View file

@ -10,6 +10,7 @@
#define NTOS_MODE_USER
#include <ntos.h>
#include "regtests.h"
#include <string.h>
#define NDEBUG
#include <debug.h>

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1 2003/07/11 18:13:57 chorns Exp $
# $Id: Makefile,v 1.2 2003/11/19 05:53:38 vizzini Exp $
PATH_TO_TOP = ../..
@ -10,7 +10,7 @@ TARGET_NAME = win32base
TARGET_SDKLIBS = rtshared.a ntdll.a kernel32.a
TARGET_CFLAGS = -I../shared
TARGET_CFLAGS = -I../shared -Wall -Werror
TARGET_BASE = 0x60000000

View file

@ -1,6 +1,7 @@
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "regtests.h"
@ -21,7 +22,7 @@ static int RunTest(char *Buffer)
if (file == INVALID_HANDLE_VALUE)
{
sprintf(Buffer, "Error opening file (Status %x)", GetLastError());
sprintf(Buffer, "Error opening file (Status %lx)", GetLastError());
return TS_FAILED;
}
@ -30,7 +31,7 @@ static int RunTest(char *Buffer)
if (WriteFile( file, buffer, 4096, &wrote, NULL) == FALSE)
{
sprintf(Buffer, "Error writing file (Status %x)", GetLastError());
sprintf(Buffer, "Error writing file (Status %lx)", GetLastError());
return TS_FAILED;
}
@ -38,7 +39,7 @@ static int RunTest(char *Buffer)
if (ReadFile( file, buffer, 4096, &wrote, NULL) == FALSE)
{
sprintf(Buffer, "Error reading file (Status %x)", GetLastError());
sprintf(Buffer, "Error reading file (Status %lx)", GetLastError());
return TS_FAILED;
}
for (c = 0; c < sizeof(buffer); c++)