From f9f2413e69b9bd821c4e871f1ce46d3a5eafeb0c Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 2 Apr 2019 14:07:29 +0200 Subject: Fix -Wnon-virtual-dtor warnings. Example of the warning: ./core/script_language.h:198:7: warning: 'class ScriptCodeCompletionCache' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] --- core/script_language.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/script_language.h') diff --git a/core/script_language.h b/core/script_language.h index b6d7bea9c7..005e21e2cc 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -205,6 +205,8 @@ public: static ScriptCodeCompletionCache *get_singleton() { return singleton; } ScriptCodeCompletionCache(); + + virtual ~ScriptCodeCompletionCache() {} }; class ScriptLanguage { -- cgit v1.2.3