tests: fix shadow variable build warning
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 22 Jul 2014 02:05:02 +0000 (11:05 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 22 Jul 2014 02:06:33 +0000 (11:06 +0900)
elm_test_clock.c:15:23: warning: declaration of ‘clock’ shadows a global declaration [-Wshadow]
elm_test_index.c:15:23: warning: declaration of ‘index’ shadows a global declaration [-Wshadow]

legacy/elementary/src/tests/elm_test_clock.c
legacy/elementary/src/tests/elm_test_index.c

index 1eca436..4a7a602 100644 (file)
 
 START_TEST (elm_atspi_role_get)
 {
-   Evas_Object *win, *clock;
+   Evas_Object *win, *clk;
    Elm_Atspi_Role role;
 
    elm_init(1, NULL);
    win = elm_win_add(NULL, "clock", ELM_WIN_BASIC);
 
-   clock = elm_clock_add(win);
-   eo_do(clock, role = elm_interface_atspi_accessible_role_get());
+   clk = elm_clock_add(win);
+   eo_do(clk, role = elm_interface_atspi_accessible_role_get());
 
    ck_assert(role == ELM_ATSPI_ROLE_TEXT);
 
index 17c240e..ad0655a 100644 (file)
 
 START_TEST (elm_atspi_role_get)
 {
-   Evas_Object *win, *index;
+   Evas_Object *win, *idx;
    Elm_Atspi_Role role;
 
    elm_init(1, NULL);
    win = elm_win_add(NULL, "index", ELM_WIN_BASIC);
 
-   index = elm_index_add(win);
-   eo_do(index, role = elm_interface_atspi_accessible_role_get());
+   idx = elm_index_add(win);
+   eo_do(idx, role = elm_interface_atspi_accessible_role_get());
 
    ck_assert(role == ELM_ATSPI_ROLE_LIST);