patch for -Werror -Wall by jonathan wilson
authorVizzini <vizzini@plasmic.com>
Wed, 19 Nov 2003 05:53:38 +0000 (05:53 +0000)
committerVizzini <vizzini@plasmic.com>
Wed, 19 Nov 2003 05:53:38 +0000 (05:53 +0000)
svn path=/trunk/; revision=6701

reactos/regtests/kmregtests/Makefile
reactos/regtests/kmregtests/driver.c
reactos/regtests/kmrtint/Makefile
reactos/regtests/regtests/Makefile
reactos/regtests/shared/Makefile
reactos/regtests/shared/regtests.c
reactos/regtests/win32base/Makefile
reactos/regtests/win32base/file-1.c

index 8608440..88969df 100755 (executable)
@@ -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 = ../..
 
 
 PATH_TO_TOP = ../..
 
@@ -10,7 +10,7 @@ TARGET_NAME = kmregtests
 
 TARGET_LIBS = $(SDK_PATH_LIB)/rtshared.a
 
 
 TARGET_LIBS = $(SDK_PATH_LIB)/rtshared.a
 
-TARGET_CFLAGS = -I../shared
+TARGET_CFLAGS = -I../shared -Werror -Wall
 
 TARGET_GENREGTESTS = yes
 
 
 TARGET_GENREGTESTS = yes
 
index 07c5154..9793336 100755 (executable)
@@ -149,7 +149,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
 {
   PDEVICE_OBJECT DeviceObject;
   UNICODE_STRING DeviceName;
 {
   PDEVICE_OBJECT DeviceObject;
   UNICODE_STRING DeviceName;
-  UNICODE_STRING DosName;
   NTSTATUS Status;
 
   /* Register driver routines */
   NTSTATUS Status;
 
   /* Register driver routines */
index 9664a53..3a0e384 100755 (executable)
@@ -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 = ../..
 
 
 PATH_TO_TOP = ../..
 
@@ -10,7 +10,7 @@ TARGET_NAME = kmrtint
 
 TARGET_SDKLIBS = ntdll.a kernel32.a
 
 
 TARGET_SDKLIBS = ntdll.a kernel32.a
 
-TARGET_CFLAGS = -I../shared -I../kmregtests
+TARGET_CFLAGS = -I../shared -I../kmregtests -Werror -Wall
 
 TARGET_BASE = 0x50000000
 
 
 TARGET_BASE = 0x50000000
 
index 4726bee..d5160f6 100755 (executable)
@@ -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 = ../..
 
 
 PATH_TO_TOP = ../..
 
@@ -12,7 +12,7 @@ TARGET_NAME = regtests
 
 TARGET_SDKLIBS = rtshared.a ntdll.a kernel32.a
 
 
 TARGET_SDKLIBS = rtshared.a ntdll.a kernel32.a
 
-TARGET_CFLAGS = -I../shared
+TARGET_CFLAGS = -I../shared -Wall -Werror
 
 TARGET_OBJECTS = \
   regtests.o
 
 TARGET_OBJECTS = \
   regtests.o
index 85e958f..faaad70 100755 (executable)
@@ -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 = ../..
 
 
 PATH_TO_TOP = ../..
 
@@ -8,6 +8,8 @@ TARGET_TYPE = library
 
 TARGET_NAME = rtshared
 
 
 TARGET_NAME = rtshared
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = \
   regtests.o
 
 TARGET_OBJECTS = \
   regtests.o
 
index 4895942..952c45a 100755 (executable)
@@ -10,6 +10,7 @@
 #define NTOS_MODE_USER
 #include <ntos.h>
 #include "regtests.h"
 #define NTOS_MODE_USER
 #include <ntos.h>
 #include "regtests.h"
+#include <string.h>
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 28b1224..e93c5a4 100755 (executable)
@@ -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 = ../..
 
 
 PATH_TO_TOP = ../..
 
@@ -10,7 +10,7 @@ TARGET_NAME = win32base
 
 TARGET_SDKLIBS = rtshared.a ntdll.a kernel32.a
 
 
 TARGET_SDKLIBS = rtshared.a ntdll.a kernel32.a
 
-TARGET_CFLAGS = -I../shared
+TARGET_CFLAGS = -I../shared -Wall -Werror
 
 TARGET_BASE = 0x60000000
 
 
 TARGET_BASE = 0x60000000
 
index bb50fa8..c497695 100755 (executable)
@@ -1,6 +1,7 @@
 #include <windows.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <windows.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "regtests.h"
 
 
 #include "regtests.h"
 
@@ -21,7 +22,7 @@ static int RunTest(char *Buffer)
 
   if (file == INVALID_HANDLE_VALUE)
     {
 
   if (file == INVALID_HANDLE_VALUE)
     {
-      sprintf(Buffer, "Error opening file (Status %x)", GetLastError());
+      sprintf(Buffer, "Error opening file (Status %lx)", GetLastError());
       return TS_FAILED;
     }
 
       return TS_FAILED;
     }
 
@@ -30,7 +31,7 @@ static int RunTest(char *Buffer)
 
   if (WriteFile( file, buffer, 4096, &wrote, NULL) == FALSE)
     {
 
   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;
     }
 
       return TS_FAILED;
     }
 
@@ -38,7 +39,7 @@ static int RunTest(char *Buffer)
 
   if (ReadFile( file, buffer, 4096, &wrote, NULL) == FALSE)
     {
 
   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++)
       return TS_FAILED;
     }
   for (c = 0; c < sizeof(buffer); c++)