From: Vizzini Date: Wed, 19 Nov 2003 05:53:38 +0000 (+0000) Subject: patch for -Werror -Wall by jonathan wilson X-Git-Tag: backups/win32k_message_rewrite@12473~66 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fa60c511c76df6bc54b522b01fac6972557e5257 patch for -Werror -Wall by jonathan wilson svn path=/trunk/; revision=6701 --- diff --git a/reactos/regtests/kmregtests/Makefile b/reactos/regtests/kmregtests/Makefile index 8608440f48a..88969dfece0 100755 --- a/reactos/regtests/kmregtests/Makefile +++ b/reactos/regtests/kmregtests/Makefile @@ -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 diff --git a/reactos/regtests/kmregtests/driver.c b/reactos/regtests/kmregtests/driver.c index 07c515416dc..97933364cdd 100755 --- a/reactos/regtests/kmregtests/driver.c +++ b/reactos/regtests/kmregtests/driver.c @@ -149,7 +149,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject, { PDEVICE_OBJECT DeviceObject; UNICODE_STRING DeviceName; - UNICODE_STRING DosName; NTSTATUS Status; /* Register driver routines */ diff --git a/reactos/regtests/kmrtint/Makefile b/reactos/regtests/kmrtint/Makefile index 9664a53c08c..3a0e384144b 100755 --- a/reactos/regtests/kmrtint/Makefile +++ b/reactos/regtests/kmrtint/Makefile @@ -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 diff --git a/reactos/regtests/regtests/Makefile b/reactos/regtests/regtests/Makefile index 4726beebf88..d5160f633bd 100755 --- a/reactos/regtests/regtests/Makefile +++ b/reactos/regtests/regtests/Makefile @@ -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 diff --git a/reactos/regtests/shared/Makefile b/reactos/regtests/shared/Makefile index 85e958f0a89..faaad7090e8 100755 --- a/reactos/regtests/shared/Makefile +++ b/reactos/regtests/shared/Makefile @@ -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 diff --git a/reactos/regtests/shared/regtests.c b/reactos/regtests/shared/regtests.c index 48959422ec6..952c45afc6b 100755 --- a/reactos/regtests/shared/regtests.c +++ b/reactos/regtests/shared/regtests.c @@ -10,6 +10,7 @@ #define NTOS_MODE_USER #include #include "regtests.h" +#include #define NDEBUG #include diff --git a/reactos/regtests/win32base/Makefile b/reactos/regtests/win32base/Makefile index 28b12245c0b..e93c5a4b000 100755 --- a/reactos/regtests/win32base/Makefile +++ b/reactos/regtests/win32base/Makefile @@ -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 diff --git a/reactos/regtests/win32base/file-1.c b/reactos/regtests/win32base/file-1.c index bb50fa8c543..c497695c92e 100755 --- a/reactos/regtests/win32base/file-1.c +++ b/reactos/regtests/win32base/file-1.c @@ -1,6 +1,7 @@ #include #include #include +#include #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++)