mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
ralloc: Fully qualify non-virtual destructor call
This suppresses warning about calling a non-virtual destructor in a non-final class with virtual functions: src/compiler/glsl/ast.h:53:4: warning: destructor called on non-final 'ast_node' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] DECLARE_LINEAR_ZALLOC_CXX_OPERATORS(ast_node); Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
41593f3c37
commit
b5a3567b51
1 changed files with 1 additions and 1 deletions
|
|
@ -430,7 +430,7 @@ bool ralloc_vasprintf_append(char **str, const char *fmt, va_list args);
|
|||
private: \
|
||||
static void _ralloc_destructor(void *p) \
|
||||
{ \
|
||||
reinterpret_cast<TYPE *>(p)->~TYPE(); \
|
||||
reinterpret_cast<TYPE *>(p)->TYPE::~TYPE(); \
|
||||
} \
|
||||
public: \
|
||||
static void* operator new(size_t size, void *mem_ctx) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue