mirror of
https://github.com/open-goal/jak-project
synced 2026-07-09 14:55:51 -04:00
Resolve a good chunk of windows compiler warnings
Mostly revolved around the new MSVC check for functions that don't cover all paths (ie. a switch statement without a default case). It appears to not see an assert as a valid default case. I switched assert(false) to exceptions in these cases. I believe this should also abort the program, but will also provide a hopefully useful message? Hopefully this is an improvement. Resolves #32
This commit is contained in:
@@ -151,7 +151,7 @@ void KernelCheckAndDispatch() {
|
||||
fprintf(stderr, "\n");
|
||||
auto result =
|
||||
call_goal(Ptr<Function>(ListenerFunction->value), 0, 0, 0, s7.offset, g_ee_main_mem);
|
||||
fprintf(stderr, "result of listener function: %ld\n", result);
|
||||
fprintf(stderr, "result of listener function: %lld\n", result);
|
||||
#ifdef __linux__
|
||||
cprintf("%ld\n", result);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user