summaryrefslogtreecommitdiff
path: root/modules/gdnative/nativescript/nativescript.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-10-04 12:04:54 +0200
committerGitHub <noreply@github.com>2018-10-04 12:04:54 +0200
commitf92a29adfea7fb37a306da2202738ebfa1fb79b2 (patch)
tree4883385e9ea2f977c38909b98cf385e82b3fe29b /modules/gdnative/nativescript/nativescript.h
parentcfa373c69f6af64d9fce8f1773a4b795f361a34c (diff)
parent97b9697ea2601f0fd92e3f326c6db29e0598638f (diff)
Merge pull request #22710 from akien-mga/fix-warnings
Fix some OSX and iOS Clang warnings
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.h')
-rw-r--r--modules/gdnative/nativescript/nativescript.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/nativescript.h b/modules/gdnative/nativescript/nativescript.h
index 54ad31255c..51370f5fbf 100644
--- a/modules/gdnative/nativescript/nativescript.h
+++ b/modules/gdnative/nativescript/nativescript.h
@@ -368,11 +368,14 @@ inline NativeScriptDesc *NativeScript::get_script_desc() const {
class NativeReloadNode : public Node {
GDCLASS(NativeReloadNode, Node)
- bool unloaded = false;
+ bool unloaded;
public:
static void _bind_methods();
void _notification(int p_what);
+
+ NativeReloadNode() :
+ unloaded(false) {}
};
class ResourceFormatLoaderNativeScript : public ResourceFormatLoader {