mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +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:
parent
d1cb73b47a
commit
b2a38854fd
38 changed files with 100 additions and 249 deletions
|
|
@ -164,6 +164,8 @@ void ShaderTextEditor::_code_complete_script(const String &p_code, List<String>
|
|||
String calltip;
|
||||
|
||||
Error err = sl.complete(p_code, ShaderTypes::get_singleton()->get_functions(VisualServer::ShaderMode(shader->get_mode())), ShaderTypes::get_singleton()->get_modes(VisualServer::ShaderMode(shader->get_mode())), ShaderTypes::get_singleton()->get_types(), r_options, calltip);
|
||||
if (err != OK)
|
||||
ERR_PRINT("Shaderlang complete failed");
|
||||
|
||||
if (calltip != "") {
|
||||
get_text_edit()->set_code_hint(calltip);
|
||||
|
|
@ -403,13 +405,7 @@ void ShaderEditorPlugin::edit(Object *p_object) {
|
|||
|
||||
bool ShaderEditorPlugin::handles(Object *p_object) const {
|
||||
|
||||
bool handles = true;
|
||||
Shader *shader = Object::cast_to<Shader>(p_object);
|
||||
/*
|
||||
if (Object::cast_to<ShaderGraph>(shader)) // Don't handle ShaderGraph's
|
||||
handles = false;
|
||||
*/
|
||||
|
||||
return shader != NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue