From 00400b697f0ce2ec6c8d36e79c3a16ac541636e6 Mon Sep 17 00:00:00 2001 From: SlowRiot Date: Tue, 31 Mar 2026 17:09:11 +0100 Subject: [PATCH] use attribute pure --- backends/imgui_impl_emscripten.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_emscripten.cpp b/backends/imgui_impl_emscripten.cpp index d492ca696..ad0683e11 100644 --- a/backends/imgui_impl_emscripten.cpp +++ b/backends/imgui_impl_emscripten.cpp @@ -160,7 +160,7 @@ static const std::unordered_map key_translate_lookup{ {"Pause", ImGuiKey_Pause}, }; -ImGuiKey translate_key(char const* emscripten_key) __attribute__((__const__)); +ImGuiKey translate_key(char const* emscripten_key) __attribute__((__pure__)); ImGuiKey translate_key(char const* emscripten_key) { // Translate an emscripten-provided browser string describing a keycode to an imgui key code