Cleanup: fix compiler warnings
This commit is contained in:
parent
1ff939f3f7
commit
2b55f621fe
|
@ -5674,8 +5674,8 @@ VectorMathNode::VectorMathNode() : ShaderNode(node_type)
|
|||
|
||||
void VectorMathNode::constant_fold(const ConstantFolder &folder)
|
||||
{
|
||||
float value;
|
||||
float3 vector;
|
||||
float value = 0.0f;
|
||||
float3 vector = make_float3(0.0f, 0.0f, 0.0f);
|
||||
|
||||
if (folder.all_inputs_constant()) {
|
||||
svm_vector_math(&value, &vector, type, vector1, vector2, scale);
|
||||
|
|
|
@ -3038,7 +3038,7 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C, struct ARegi
|
|||
BLI_path_extension_replace(filename, sizeof(filename), "");
|
||||
}
|
||||
else {
|
||||
BLI_snprintf(filename, sizeof(filename), IFACE_("Untitled"));
|
||||
STRNCPY(filename, IFACE_("Untitled"));
|
||||
}
|
||||
|
||||
/* Title */
|
||||
|
|
Loading…
Reference in New Issue