From 52a24ecf5914ae9c65787371d347e0ac6e40a40e Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Mon, 4 Jul 2016 09:50:06 +0900 Subject: [PATCH] Fixed uninitialized variable warnings Change-Id: I79ee405ec5cb78363e1619c2c6e06e951e6c6ace --- scl/gwes/efl/sclwindows-efl.cpp | 4 ++-- scl/scluibuilder.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scl/gwes/efl/sclwindows-efl.cpp b/scl/gwes/efl/sclwindows-efl.cpp index 5143aed..d1fec90 100644 --- a/scl/gwes/efl/sclwindows-efl.cpp +++ b/scl/gwes/efl/sclwindows-efl.cpp @@ -163,8 +163,8 @@ CSCLWindowsImplEfl::create_window(const sclwindow parent, SclWindowContext *wind int rots[4] = {0, 90, 180, 270}; elm_win_wm_rotation_available_rotations_set(win, rots, 4); - scl16 new_width; - scl16 new_height; + scl16 new_width = 0; + scl16 new_height = 0; CSCLContext *context = CSCLContext::get_instance(); if (context) { if (context->get_rotation() == ROTATION_90_CW || context->get_rotation() == ROTATION_90_CCW) { diff --git a/scl/scluibuilder.cpp b/scl/scluibuilder.cpp index 49ea154..c8e3dc1 100644 --- a/scl/scluibuilder.cpp +++ b/scl/scluibuilder.cpp @@ -579,7 +579,7 @@ CSCLUIBuilder::draw_button_label(const sclwindow window, const scldrawctx draw_c info.is_bold = info.is_italic = true; CSCLContext *context = CSCLContext::get_instance(); - SCLShiftState shiftstate; + SCLShiftState shiftstate = SCL_SHIFT_STATE_OFF; if (context) shiftstate = context->get_shift_state(); if (labelproperties->shadow_distance > 0 && labelproperties->shadow_color[shiftstate][state].a != 0) { -- 2.7.4