- Silence a soundblaster warning on release build
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 8 Aug 2009 14:41:50 +0000 (14:41 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 8 Aug 2009 14:41:50 +0000 (14:41 +0000)
svn path=/trunk/; revision=42516

reactos/lib/drivers/sound/soundblaster/dsp_io.c
reactos/lib/drivers/sound/soundblaster/soundblaster.rbuild

index e45d613..320efc1 100644 (file)
@@ -25,11 +25,10 @@ SbDspReset(
     IN  ULONG Timeout)
 {
     ULONG Expiry;
     IN  ULONG Timeout)
 {
     ULONG Expiry;
-    KIRQL CurrentIrqLevel = KeGetCurrentIrql();
     BOOLEAN DataAvailable = FALSE;
 
     /* Should be called from DriverEntry with this IRQL */
     BOOLEAN DataAvailable = FALSE;
 
     /* Should be called from DriverEntry with this IRQL */
-    ASSERT(CurrentIrqLevel == PASSIVE_LEVEL);
+    ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);
 
     WRITE_SB_DSP_RESET(BasePort, 0x01);
     SleepMs(50);   /* Should be enough */
 
     WRITE_SB_DSP_RESET(BasePort, 0x01);
     SleepMs(50);   /* Should be enough */
index 7012724..ab64c8c 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
-<module name="soundblaster" type="staticlibrary" allowwarnings="true">
+<module name="soundblaster" type="staticlibrary">
     <define name="__NTDRIVER__"/>
     <define name="KERNEL"/>
     <include base="soundblaster">.</include>
     <define name="__NTDRIVER__"/>
     <define name="KERNEL"/>
     <include base="soundblaster">.</include>