aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/test/device.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-26 18:42:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-26 18:42:37 +0300
commit85e289ebf0e37f2233050ea3b975b83fcce83c0a (patch)
treeccaab7582fe64312b443dcd795df6839b23b109d /src/test/device.c
parentfix licensing notices (diff)
downloadwindows7-drivers-85e289ebf0e37f2233050ea3b975b83fcce83c0a.tar.gz
windows7-drivers-85e289ebf0e37f2233050ea3b975b83fcce83c0a.zip
fix compiler warnings
Diffstat (limited to 'src/test/device.c')
-rw-r--r--src/test/device.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/device.c b/src/test/device.c
index dcd6f1b..7b871a3 100644
--- a/src/test/device.c
+++ b/src/test/device.c
@@ -13,6 +13,8 @@ static NTSTATUS device_open(DEVICE_OBJECT *device_object, IRP *irp)
{
NTSTATUS status = STATUS_SUCCESS;
+ UNREFERENCED_PARAMETER(device_object);
+
irp->IoStatus.Status = status;
irp->IoStatus.Information = 0;
IoCompleteRequest(irp, IO_NO_INCREMENT);
@@ -31,6 +33,12 @@ static NTSTATUS handle_say_hello(
unsigned long out_buf_size,
ULONG_PTR *nbwritten)
{
+ UNREFERENCED_PARAMETER(in_buf);
+ UNREFERENCED_PARAMETER(in_buf_size);
+ UNREFERENCED_PARAMETER(out_buf);
+ UNREFERENCED_PARAMETER(out_buf_size);
+ UNREFERENCED_PARAMETER(nbwritten);
+
DbgPrint("Hello, world!\n");
return STATUS_SUCCESS;
}
@@ -72,6 +80,8 @@ static NTSTATUS device_ioctl(DEVICE_OBJECT *device_object, IRP *irp)
ioctl_handler handler;
NTSTATUS status = STATUS_UNSUCCESSFUL;
+ UNREFERENCED_PARAMETER(device_object);
+
irp->IoStatus.Status = status;
irp->IoStatus.Information = 0;
io_stack_loc = IoGetCurrentIrpStackLocation(irp);