Languages

Menu
Sites
Language
uib_app_manager.c: warning: incompatible pointer types assigning

I have made a native program with the UI Builder.

The next warning appears:

../src/managed/src/manager/uib_app_manager.c:51:32: warning: incompatible pointer types assigning to 'bool (*)(widget_context_h, int, int)' from 'bool (widget_context_h, int, int, char *)' [-Wincompatible-pointer-types]

g_uib_app_manager.initialize = initialize;

This is generated code from the UI Builder. If I change the code and compile it the ui builder changed it back so my changes we gone.

How do I correct this warning?

I just created a new tizen project , template, wearable 2.3.2, c/ C++, UI Builder Widget Circle, Finsh.

Then build the project and the warning is there!!

 

 

Responses

4 Replies
GEUNSOO KIM

just ignore it. the warning doesn't have any worth to give your time and there is no way to fix it by user.
 

Marco Ham

Thanks for the reply.

But the prepare is never called, use_user_view is never set, is this not necessarily then?

bool initialize(widget_context_h context, int w, int h, char* use_user_view) {

memset(&g_uib_device_info, 0x00, sizeof(uib_device_info_st));

uib_util_get_device_info(&g_uib_device_info);

window_obj* win_obj = uib_views_get_instance()->create_window_obj(context, w, h);

uib_util_rotation_set(win_obj->win, e_rotation_fullSensor);

if(use_user_view!=USE_USER_VIEW) {

prepare();

}

return (win_obj)? true : false;

}

Armaan-Ul- Islam

To check the Call Hierarchy of a function, Mark the Function name > Right Click > Open Call Hierarchy.

 

As GEUNSOO KIM said, Seems It has no impact on application deployment, Ignore it for now.

Marco Ham

The Call Hierarchy is known see initial post about the incompatible pointer types assigning (g_uib_app_manager.initialize = initialize;).

I will ignore it but it is strange that the initialize function will call the prepare by chance what is on the stack. It don't feel like a stable program.