Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created January 4, 2021 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasterDuke17/68a01316278147c9628d0f182379a730 to your computer and use it in GitHub Desktop.
Save MasterDuke17/68a01316278147c9628d0f182379a730 to your computer and use it in GitHub Desktop.
src/debug/debugserver.c: In function ‘debugserver_invocation_special_return’:
src/debug/debugserver.c:1547:71: warning: passing argument 2 of ‘allocate_handle’ from incompatible pointer type [-Wincompatible-pointer-types]
1547 | MVMuint64 handle = allocate_handle(tc, data->return_target.s);
| ~~~~~~~~~~~~~~~~~~~^~
| |
| MVMString *
src/debug/debugserver.c:1184:68: note: expected ‘MVMObject *’ but argument is of type ‘MVMString *’
1184 | static MVMuint64 allocate_handle(MVMThreadContext *dtc, MVMObject *target) {
| ~~~~~~~~~~~^~~~~~
src/debug/debugserver.c: In function ‘debugserver_invocation_special_unwind’:
src/debug/debugserver.c:1575:45: warning: unused variable ‘data’ [-Wunused-variable]
1575 | DebugserverInvocationSpecialReturnData *data = (DebugserverInvocationSpecialReturnData *)data_in;
| ^~~~
src/debug/debugserver.c: In function ‘request_invoke_code’:
src/debug/debugserver.c:1676:28: warning: assignment to ‘MVMObject *’ from incompatible pointer type ‘MVMString *’ [-Wincompatible-pointer-types]
1676 | target = MVM_string_utf8_decode(dtc, vm->VMString, argument->arguments[index].arg_u.s, strlen(argument->arguments[index].arg_u.s));
| ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment