mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
patch for -Werror -Wall by jonathan wilson
svn path=/trunk/; revision=6701
This commit is contained in:
parent
d60d0aa990
commit
fa60c511c7
8 changed files with 16 additions and 13 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
{
|
{
|
||||||
PDEVICE_OBJECT DeviceObject;
|
PDEVICE_OBJECT DeviceObject;
|
||||||
UNICODE_STRING DeviceName;
|
UNICODE_STRING DeviceName;
|
||||||
UNICODE_STRING DosName;
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
/* Register driver routines */
|
/* Register driver routines */
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 = \
|
TARGET_OBJECTS = \
|
||||||
regtests.o
|
regtests.o
|
||||||
|
|
|
@ -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 = \
|
TARGET_OBJECTS = \
|
||||||
regtests.o
|
regtests.o
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ntos.h>
|
#include <ntos.h>
|
||||||
#include "regtests.h"
|
#include "regtests.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.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;
|
return TS_FAILED;
|
||||||
}
|
}
|
||||||
for (c = 0; c < sizeof(buffer); c++)
|
for (c = 0; c < sizeof(buffer); c++)
|
||||||
|
|
Loading…
Reference in a new issue