examples: fix compiler warnings.
authorHermet Park <chuneon.park@samsung.com>
Mon, 24 May 2021 08:03:42 +0000 (17:03 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 25 May 2021 03:42:55 +0000 (12:42 +0900)
Change-Id: I320432b2de1687e3037ab793c63151d826787f86

example/animation_mixing.cpp
example/rive_viewer.cpp
example/user_interaction_rollinout.cpp

index ee153945189170e0666ed3c3f981cf9cab60ad0d..1cb2cbc0e4f2f4dc62e0e953f0a1088acfee9d67 100644 (file)
@@ -24,7 +24,6 @@ static Ecore_Animator *animator = nullptr;
 static Eo* view = nullptr;
 static vector<std::string> rivefiles;
 static double lastTime;
-static Eo* statePopup = nullptr;
 
 std::string currentColorInstance;
 Eo *entryR, *entryG, *entryB, *entryA;
index a556936b52a5c1709bb547f29f0044b7a6475928..5b8ad5f9f6429ec6e4e191d345f985cacced95ef 100644 (file)
@@ -181,11 +181,9 @@ static void animPopupItemCb(void *data EINA_UNUSED, Evas_Object *obj, void *even
 
 static Elm_Object_Item* animPopupItemNew(Evas_Object *obj, const char *label, int index)
 {
-    Elm_Object_Item *it = nullptr;
-
     if (!obj) return nullptr;
 
-    return elm_ctxpopup_item_append(obj, label, nullptr, animPopupItemCb, (void*)index);
+    return elm_ctxpopup_item_append(obj, label, nullptr, animPopupItemCb, reinterpret_cast<void*>(index));
 }
 
 static void animPopupDismissCb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
@@ -202,7 +200,7 @@ static void viewClickedCb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA
     statePopup = elm_ctxpopup_add(obj);
     evas_object_smart_callback_add(statePopup, "dismissed", animPopupDismissCb, nullptr);
 
-    for (int index = 0; index < artboard->animationCount(); index++)
+    for (unsigned index = 0; index < artboard->animationCount(); index++)
       animPopupItemNew(statePopup, artboard->animation(index)->name().c_str(), index);
 
     int x, y;
index a4e7e7d4e0342e84c9d3cc998437d56512d3bd00..b41f8edc97e4634c34269c741870426141afa7fa 100644 (file)
@@ -23,7 +23,6 @@ static Ecore_Animator *animator = nullptr;
 static Eo* view = nullptr;
 static vector<std::string> rivefiles;
 static double lastTime;
-static Eo* statePopup = nullptr;
 
 static void deleteWindow(void *data, Evas_Object *obj, void *ev)
 {