warnings - silence some theoreitcal wranings in build

a bunch of "potentially uninitialized variable" warnings fixed.
This commit is contained in:
Carsten Haitzler 2016-05-15 23:14:15 +09:00
parent ec9a888fcf
commit 59e2eb40f8
3 changed files with 9 additions and 6 deletions

View File

@ -238,7 +238,7 @@ _bryce_autosize(Bryce *b)
static Eina_Bool
_bryce_autohide_timeout(Bryce *b)
{
int x, y;
int x = 0, y = 0;
b->autohide_timer = NULL;
b->hidden = b->animating = 1;

View File

@ -1850,7 +1850,7 @@ static void
_e_comp_smart_cb_frame_recalc(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
{
E_Comp_Object *cw = data;
int w, h, pw, ph;
int w = 0, h = 0, pw = 0, ph = 0;
/* - get current size
* - calc new size
@ -2417,12 +2417,15 @@ _e_comp_smart_resize(Evas_Object *obj, int w, int h)
cw->w = w, cw->h = h;
if ((!cw->ec->shading) && (!cw->ec->shaded))
{
int ww, hh, pw, ph;
int ww = 0, hh = 0, pw = 0, ph = 0;
if (cw->frame_object)
e_comp_object_frame_wh_unadjust(obj, w, h, &ww, &hh);
else
ww = w, hh = h;
{
ww = w;
hh = h;
}
/* verify pixmap:object size */
if (e_pixmap_size_get(cw->ec->pixmap, &pw, &ph) && (!cw->ec->override))
{

View File

@ -339,7 +339,7 @@ _notification_popup_new(E_Notification_Notify *n, unsigned id)
EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
Evas_Object *o;
int x, y, w, h;
int x = 0, y = 0, w = 0, h = 0;
if (zone == e_comp_object_util_zone_get(popup->win)) continue;
o = e_comp_object_util_mirror_add(popup->theme);
@ -363,7 +363,7 @@ _notification_popup_new(E_Notification_Notify *n, unsigned id)
static int
_notification_popup_place(Popup_Data *popup, int pos)
{
int x, y, w, h;
int x = 0, y = 0, w = 0, h = 0;
Eina_List *l;
Evas_Object *o;
E_Zone *zone;