fix lots of warnings

fix warnings
This commit is contained in:
Mackenzie Clark
2019-03-15 14:10:17 -07:00
parent b0b0a17d6e
commit 14104c2c8b
12 changed files with 70 additions and 46 deletions

View File

@ -67,16 +67,16 @@ uint8_t callProtected(trampoline_t trampoline,
savedStackPointer = get_callee_frame_address();
trampoline(ctx, func, param_vec, return_vec);
out_result->code = 0;
out_result->exceptionAddress = 0;
out_result->instructionPointer = 0;
out_result->exception_address = 0;
out_result->instruction_pointer = 0;
removeExceptionHandler();
return TRUE;
}
out_result->code = (uint64_t)signum;
out_result->exceptionAddress = (uint64_t)caughtExceptionAddress;
out_result->instructionPointer = caughtInstructionPointer;
out_result->exception_address = (uint64_t)caughtExceptionAddress;
out_result->instruction_pointer = caughtInstructionPointer;
caughtExceptionAddress = 0;
caughtInstructionPointer = 0;

View File

@ -10,8 +10,8 @@ typedef void(*trampoline_t)(struct wasmer_instance_context_t*, const struct fun
struct call_protected_result_t {
uint64_t code;
uint64_t exceptionAddress;
uint64_t instructionPointer;
uint64_t exception_address;
uint64_t instruction_pointer;
};
uint8_t callProtected(