From da005fa7fc1305980acb35b15284630e0c9b617d Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 30 Jun 2018 10:51:47 +0300 Subject: [PATCH] Fixed compilation warnings reported by Clang hwrenderer/postprocessing/hw_postprocess.cpp:22:3: warning: delete called on non-final 'PPEffectManager' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] hwrenderer/postprocessing/hw_postprocess.h:64:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] hwrenderer/postprocessing/hw_postprocess.h:75:3: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] hwrenderer/postprocessing/hw_postprocess.h:85:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] --- src/hwrenderer/postprocessing/hw_postprocess.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hwrenderer/postprocessing/hw_postprocess.h b/src/hwrenderer/postprocessing/hw_postprocess.h index 1708a86b4..4fa8fd0c2 100644 --- a/src/hwrenderer/postprocessing/hw_postprocess.h +++ b/src/hwrenderer/postprocessing/hw_postprocess.h @@ -92,7 +92,7 @@ public: } } - void *Data = nullptr; + uint8_t *Data = nullptr; int Size = 0; }; @@ -204,6 +204,7 @@ public: class PPEffectManager { public: + virtual ~PPEffectManager() { } virtual void DeclareShaders() { } virtual void UpdateTextures() { } virtual void UpdateSteps() { }