mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix some code found by Coverity Scan and PVS Studio
This commit is contained in:
parent
e466dc2daa
commit
aab8da25ad
24 changed files with 71 additions and 65 deletions
|
|
@ -967,7 +967,7 @@ bool ShaderLanguage::_find_identifier(const BlockNode *p_block, const Map<String
|
|||
bool ShaderLanguage::_validate_operator(OperatorNode *p_op, DataType *r_ret_type) {
|
||||
|
||||
bool valid = false;
|
||||
DataType ret_type;
|
||||
DataType ret_type = TYPE_VOID;
|
||||
|
||||
switch (p_op->op) {
|
||||
case OP_EQUAL:
|
||||
|
|
@ -3059,7 +3059,7 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
|
|||
String ident = identifier;
|
||||
|
||||
bool ok = true;
|
||||
DataType member_type;
|
||||
DataType member_type = TYPE_VOID;
|
||||
switch (dt) {
|
||||
case TYPE_BVEC2:
|
||||
case TYPE_IVEC2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue