lottie/example: remove all warnings in example

This commit is contained in:
subhransu mohanty
2019-05-14 09:37:33 +09:00
committed by Subhransu
parent 323b07c37f
commit 780a2603ae
6 changed files with 17 additions and 17 deletions

View File

@@ -1,11 +1,11 @@
add_executable(lottie-gif "lottie2gif.cpp")
add_executable(lottie2gif "lottie2gif.cpp")
target_compile_options(lottie-gif
target_compile_options(lottie2gif
PRIVATE
-std=c++11)
target_link_libraries(lottie-gif rlottie)
target_link_libraries(lottie2gif rlottie)
target_include_directories(lottie-gif
target_include_directories(lottie2gif
PRIVATE
"${CMAKE_CURRENT_LIST_DIR}/../inc/")

View File

@@ -25,14 +25,14 @@
using namespace std;
static void
onExitCb(void *data, void *extra)
onExitCb(void *data, void */*extra*/)
{
LottieView *view = (LottieView *)data;
delete view;
}
static void
onRenderPreCb(void *data, void *extra)
onRenderPreCb(void *data, void */*extra*/)
{
LottieView *view = (LottieView *)data;
view->render();

View File

@@ -43,7 +43,7 @@ _on_delete(Ecore_Evas *ee)
}
static Eina_Bool
on_key_down(void *data, int type, void *event)
on_key_down(void *data, int /*type*/, void *event)
{
Ecore_Event_Key *keyData = (Ecore_Event_Key *)event;
@@ -120,7 +120,7 @@ static bool isJsonFile(const char *filename) {
}
std::vector<std::string>
EvasApp::jsonFiles(const std::string &dirName, bool recurse)
EvasApp::jsonFiles(const std::string &dirName, bool /*recurse*/)
{
DIR *d;
struct dirent *dir;

View File

@@ -120,7 +120,7 @@ _slider_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
}
static void
_button_clicked_cb(void *data, Evas_Object *obj, void *event_info)
_button_clicked_cb(void *data, Evas_Object */*obj*/, void */*event_info*/)
{
AppInfo *info = (AppInfo *)data;
@@ -189,7 +189,7 @@ create_layout(Evas_Object *parent, const char *file)
}
static void
_gl_selected_cb(void *data, Evas_Object *obj, void *event_info)
_gl_selected_cb(void *data, Evas_Object */*obj*/, void *event_info)
{
Evas_Object *nf = (Evas_Object *)data;
Elm_Object_Item *it = (Elm_Object_Item *)event_info;
@@ -200,7 +200,7 @@ _gl_selected_cb(void *data, Evas_Object *obj, void *event_info)
}
static char *
_gl_text_get(void *data, Evas_Object *obj, const char *part)
_gl_text_get(void *data, Evas_Object */*obj*/, const char */*part*/)
{
ItemData *id = (ItemData *) data;
const char *ptr = strrchr(jsonFiles[id->index].c_str(), '/');
@@ -209,7 +209,7 @@ _gl_text_get(void *data, Evas_Object *obj, const char *part)
}
static void
_gl_del(void *data, Evas_Object *obj)
_gl_del(void */*data*/, Evas_Object */*obj*/)
{
}

View File

@@ -89,14 +89,14 @@ public:
};
static void
onExitCb(void *data, void *extra)
onExitCb(void *data, void */*extra*/)
{
LottieViewTest *view = (LottieViewTest *)data;
delete view;
}
static void
onRenderPreCb(void *data, void *extra)
onRenderPreCb(void *data, void */*extra*/)
{
LottieViewTest *view = (LottieViewTest *)data;
view->render();

View File

@@ -77,7 +77,7 @@ public:
};
static void
onExitCb(void *data, void *extra)
onExitCb(void *data, void */*extra*/)
{
UxSampleTest *view = (UxSampleTest *)data;
delete view;
@@ -104,7 +104,7 @@ onKeyCb(void *data, void *extra)
}
static void
onRenderPreCb(void *data, void *extra)
onRenderPreCb(void *data, void */*extra*/)
{
UxSampleTest *view = (UxSampleTest *)data;
if (view->mView)
@@ -112,7 +112,7 @@ onRenderPreCb(void *data, void *extra)
}
static void
onResizeCb(void *data, void *extra)
onResizeCb(void *data, void */*extra*/)
{
UxSampleTest *view = (UxSampleTest *)data;
view->resize();