From e241bb486e822381906e45744be47992db3c30a8 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 13 Jul 2013 06:31:13 +0000 Subject: [PATCH] [KMTESTS:RTL] - Fix a warning svn path=/trunk/; revision=59463 --- rostests/kmtests/rtl/RtlException.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rostests/kmtests/rtl/RtlException.c b/rostests/kmtests/rtl/RtlException.c index 4dfb5b93322..e2872dda36d 100644 --- a/rostests/kmtests/rtl/RtlException.c +++ b/rostests/kmtests/rtl/RtlException.c @@ -11,7 +11,6 @@ START_TEST(RtlException) { NTSTATUS ExceptionStatus; PCHAR Buffer[128]; - CHAR Value; /* Access a valid pointer - must not trigger SEH */ KmtStartSeh() @@ -20,7 +19,7 @@ START_TEST(RtlException) /* Read from a NULL pointer - must cause an access violation */ KmtStartSeh() - Value = *(volatile CHAR *)NULL; + (void)*(volatile CHAR *)NULL; KmtEndSeh(STATUS_ACCESS_VIOLATION); /* Write to a NULL pointer - must cause an access violation */ @@ -32,7 +31,7 @@ START_TEST(RtlException) #if 0 //def KMT_KERNEL_MODE /* Read from MmBadPointer - must cause an access violation */ KmtStartSeh() - Value = *(volatile CHAR *)MmBadPointer; + (void)*(volatile CHAR *)MmBadPointer; KmtEndSeh(STATUS_ACCESS_VIOLATION); /* Write to MmBadPointer - must cause an access violation */