fix remaining warnings (besides semaphore
authorJudah Caruso <judah@tuta.io>
Wed, 13 Dec 2023 16:20:20 +0000 (09:20 -0700)
committerJudah Caruso <judah@tuta.io>
Wed, 13 Dec 2023 16:20:20 +0000 (09:20 -0700)
compiler/src/wasm_runtime.c
interpreter/src/debug/debug_host.c
interpreter/src/vm/vm.c
shared/lib/darwin_arm64/lib/libovmwasm.a

index e232d8b9548e86820d52ba913fef94d7ba3358d7..a802e3ccaca4c18aa435462d8602fdc17d2d3ad2 100644 (file)
@@ -241,7 +241,7 @@ static wasm_trap_t *__wasm_dyncall(void *env, const wasm_val_vec_t *args, wasm_v
                 dcArgInt(dcCallVM, args->data[arg_idx++].of.i32);
                 break;
 
-            default: assert(("bad dynamic call type", 0));
+            default: assert("bad dynamic call type" && 0);
         }
     }
 
@@ -652,7 +652,7 @@ b32 onyx_run_wasm(bh_buffer wasm_bytes, int argc, char *argv[]) {
 #ifdef USE_DYNCALL
     wasm_runtime.wasm_func_from_idx = wasm_func_from_idx;
 #endif
-    
+
     wasm_runtime.argc = argc;
     wasm_runtime.argv = argv;
 
index 83312106f9be20fbda24b7c3f145d2a4e33903cb..505abdb24509bf98091fc907fba5c6800622bdca 100644 (file)
@@ -19,7 +19,8 @@ void debug_host_init(debug_state_t *debug, struct ovm_engine_t *ovm_engine) {
     debug->listen_socket_fd = 0;
     debug->client_fd = 0;
 
-    if (pipe(debug->state_change_pipes) != 0) {
+    int *pipes = (int *)debug->state_change_pipes;
+    if (pipe(pipes) != 0) {
         printf("[ERROR] Failed to create thread notification pipes.\n");
     }
 }
index cde89285c2b678b8a84bbbb40bf12455601dce3e..4e98f756f8df32b9ddf05d610e1973c4017e507a 100644 (file)
@@ -449,7 +449,7 @@ static inline double __ovm_nearest(double f) {
     else                          return __ovm_ceil(f);
 }
 
-static inline double __ovm_copysign(a, b) double a, b; {
+static inline double __ovm_copysign(double a, double b) {
     if ((a > 0 && b > 0) || (a < 0 && b < 0)) return a;
     return -a;
 }
index 2d08d29de393dfd684f461f3426dba9892d71af1..a330b5c35d51a9a651f0617cd591de8218702ebb 100644 (file)
Binary files a/shared/lib/darwin_arm64/lib/libovmwasm.a and b/shared/lib/darwin_arm64/lib/libovmwasm.a differ