Description
src/c/tk_jni.c: In function 'Java_awtk_TIdle_idle_1remove_1all_1by_1ctx':
src/c/tk_jni.c:2439:39: error: passing argument 1 of 'idle_remove_all_by_ctx' makes pointer from integer without a cast [-Wint-conversion]
2439 | ret = (ret_t)idle_remove_all_by_ctx(ctx);
| ^~~
| |
| jlong {aka long long int}
In file included from D:/Project/TuoSheng/awtk/src/base/widget.h:36,
from D:/Project/TuoSheng/awtk/src/base/window_base.h:25,
from D:/Project/TuoSheng/awtk/src/base/dialog.h:25,
from src/c/tk_jni.c:15:
D:/Project/TuoSheng/awtk/src/base/idle.h:110:36: note: expected 'void ' but argument is of type 'jlong' {aka 'long long int'}
110 | ret_t idle_remove_all_by_ctx(void ctx);
| ~~~~~~^~~
src/c/tk_jni.c: In function 'Java_awtk_TTimer_timer_1remove_1all_1by_1ctx':
src/c/tk_jni.c:3828:40: error: passing argument 1 of 'timer_remove_all_by_ctx' makes pointer from integer without a cast [-Wint-conversion]
3828 | ret = (ret_t)timer_remove_all_by_ctx(ctx);
| ^~~
| |
| jlong {aka long long int}
In file included from D:/Project/TuoSheng/awtk/src/base/widget.h:37:
D:/Project/TuoSheng/awtk/src/base/timer.h:120:37: note: expected 'void ' but argument is of type 'jlong' {aka 'long long int'}
120 | ret_t timer_remove_all_by_ctx(void ctx);
| ~~~~~~^~~
src/c/tk_jni.c: In function 'Java_awtk_TWidget_widget_1set_1prop_1pointer':
src/c/tk_jni.c:6591:54: error: passing argument 3 of 'widget_set_prop_pointer' makes pointer from integer without a cast [-Wint-conversion]
6591 | ret = (ret_t)widget_set_prop_pointer(widget, name, v);
| ^
| |
| jlong {aka long long int}
D:/Project/TuoSheng/awtk/src/base/widget.h:2006:73: note: expected 'void ' but argument is of type 'jlong' {aka 'long long int'}
2006 | ret_t widget_set_prop_pointer(widget_t widget, const char* name, void* v);
| ~~~~~~^
scons: *** [src/c/tk_jni.o] Error 1
scons: building terminated because of errors.
Activity