tests: Initialize variables and quiet warning.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Mon, 23 Sep 2019 19:27:49 +0000 (15:27 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 23 Sep 2019 21:32:19 +0000 (06:32 +0900)
Summary: The switch does not cover all Align enum values.

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10085

src/tests/elementary/efl_ui_test_popup.c

index 82c992a..d15df25 100644 (file)
@@ -642,7 +642,7 @@ verify_anchor(Eo *popup, Eo **align_buttons, Align align, Eina_Size2D *popup_sz)
    else
      anchor_geom = win_geom;
 
-   Evas_Coord x, y;
+   Evas_Coord x = 0, y = 0;
 
    /* click the button to trigger changing the align on the popup
     * this could be done manually, but we're trying to copy the elm_test case