Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-23 13:50:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-24 12:14:49 +0300
commit727d6644da08a66673dd4fb7665a1796d2fd1866 (patch)
tree3b2197d4ed7a64558f376d2593f5b408701e498c /source/blender/blenkernel
parente1a66201da2595b8d5afd7072a1f3730ca34d04a (diff)
Cleanup: fix compiler warnings.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c
index 51ab82fd593..053a9b964a1 100644
--- a/source/blender/blenkernel/intern/font.c
+++ b/source/blender/blenkernel/intern/font.c
@@ -1053,7 +1053,7 @@ makebreak:
textbox_scale(&tb_scale, &cu->tb[tb_index], 1.0f / cu->fsize);
/* The initial Y origin of the textbox is hardcoded to 1.0f * text scale. */
const float textbox_y_origin = 1.0f;
- float yoff;
+ float yoff = 0.0f;
switch (cu->align_y) {
case CU_ALIGN_Y_TOP_BASELINE:
@@ -1084,7 +1084,7 @@ makebreak:
}
else {
/* Non text-box case handled separately. */
- float yoff;
+ float yoff = 0.0f;
switch (cu->align_y) {
case CU_ALIGN_Y_TOP_BASELINE: