You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix warnings on non-static data member initializers (C++11 feature)
We're not formally using C++11 yet so those trigger compilation warnings
(at least with GCC 5):
./main/input_default.h:122:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
CursorShape default_shape = CURSOR_ARROW;
^
Note: We may allow those eventually (especially for non-int static const),
but most of current occurrences were inconsistent with all other classes.
See also http://www.stroustrup.com/C++11FAQ.html#member-init
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "scene/gui/graph_edit.h"
|
||||
#include "visual_script.h"
|
||||
#include "visual_script_property_selector.h"
|
||||
|
||||
class VisualScriptEditorSignalEdit;
|
||||
class VisualScriptEditorVariableEdit;
|
||||
|
||||
@@ -159,7 +160,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
||||
MemberType member_type;
|
||||
String member_name;
|
||||
|
||||
bool seq_connect = false;
|
||||
bool seq_connect;
|
||||
|
||||
PortAction port_action;
|
||||
int port_action_node;
|
||||
|
||||
Reference in New Issue
Block a user