Cleanup: fix compiler warnings

This commit is contained in:
Brecht Van Lommel 2019-08-26 16:07:32 +02:00
parent 1ff939f3f7
commit 2b55f621fe
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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 */