From 93ee157da0f1466dd24b236b45720c30043f87f7 Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Tue, 20 Jun 2023 10:26:28 +0200 Subject: [PATCH] silence clang warning on const qualifiers --- .gitmodules | 1 + src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index a580a90..b908527 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "milepost"] path = milepost url = git@git.handmade.network:MartinFouilleul/milepost.git + branch = main diff --git a/src/main.c b/src/main.c index ce29e5d..1f97ab9 100644 --- a/src/main.c +++ b/src/main.c @@ -322,7 +322,7 @@ void* orca_runloop(void* user) { log_error("Couldn't load wasm module at %s\n", modulePathCString); - char* options[] = {"OK"}; + const char* options[] = {"OK"}; mp_alert_popup("Error", "The application couldn't load: web assembly module not found", 1, @@ -371,7 +371,7 @@ void* orca_runloop(void* user) log_error("wasm error: %s\n", errInfo.message); - char* options[] = {"OK"}; + const char* options[] = {"OK"}; mp_alert_popup("Error", "The application couldn't load: can't compile web assembly module", 1,