You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
@@ -125,6 +125,9 @@ void ScriptDebuggerRemote::_put_variable(const String &p_name, const Variant &p_
|
||||
packet_peer_stream->put_var(p_name);
|
||||
int len = 0;
|
||||
Error err = encode_variant(p_variable, NULL, len);
|
||||
if (err != OK)
|
||||
ERR_PRINT("Failed to encode variant");
|
||||
|
||||
if (len > packet_peer_stream->get_output_buffer_max_size()) { //limit to max size
|
||||
packet_peer_stream->put_var(Variant());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user