From 10718b096100b61b9cfcf0e668af7b94f4bbe00a Mon Sep 17 00:00:00 2001 From: Simon Wenner Date: Thu, 4 Oct 2018 00:58:37 +0200 Subject: Fix some cppcheck errors cppcheck: fix broken pre-processor statement cppcheck: fix Uninitialized struct members in canvas editor plugin cppcheck: fix uninitialized struct member: method_api.is_virtual --- modules/gdnative/nativescript/api_generator.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp index 0983c12619..8c6dace847 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -292,6 +292,7 @@ List generate_c_api_classes() { method_api.has_varargs = method_bind && method_bind->is_vararg(); // Method flags + method_api.is_virtual = false; if (method_info.flags) { const uint32_t flags = method_info.flags; method_api.is_editor = flags & METHOD_FLAG_EDITOR; -- cgit v1.2.3