[PORTCLS]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 20 Jul 2013 10:43:33 +0000 (10:43 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 20 Jul 2013 10:43:33 +0000 (10:43 +0000)
- Silence warnings. Using (unnecessary) virtual destructors here rather than final because that's what the 99 other classes already do.

svn path=/trunk/; revision=59535

reactos/cmake/gcc.cmake
reactos/drivers/wdm/audio/backpln/portcls/miniport_dmus.cpp

index 45156a3..1f22160 100644 (file)
@@ -51,7 +51,7 @@ add_compile_flags("-Werror -Wall -Wno-char-subscripts -Wpointer-arith -Wno-multi
 if(GCC_VERSION VERSION_LESS 4.7)
     add_compile_flags("-Wno-error=uninitialized")
 elseif(GCC_VERSION VERSION_EQUAL 4.7 OR GCC_VERSION VERSION_GREATER 4.7)
-    add_compile_flags("-Wno-error=unused-but-set-variable -Wno-maybe-uninitialized -Wno-error=delete-non-virtual-dtor -Wno-error=narrowing")
+    add_compile_flags("-Wno-error=unused-but-set-variable -Wno-maybe-uninitialized -Wno-error=narrowing")
 endif()
 
 if(ARCH STREQUAL "amd64")
index a94a362..7fd55ae 100644 (file)
@@ -118,7 +118,7 @@ public:
     }
 
     CMiniportDMusUART(IUnknown * Unknown){}
-    ~CMiniportDMusUART();
+    virtual ~CMiniportDMusUART();
 
     /*************************************************************************
      * IMiniport methods
@@ -242,7 +242,7 @@ public:
         return m_Ref;
     }
 
-    ~CMiniportDMusUARTStream();
+    virtual ~CMiniportDMusUARTStream();
 
     STDMETHODIMP_(NTSTATUS) Init
     (