From daeb7b10187249aade7d92ccfef8dcf5a94f8148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20=C3=85stholm?= Date: Tue, 3 Dec 2024 23:21:58 +0100 Subject: [PATCH] don't assign to debug-only global variable in release builds --- src/internal_debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal_debug.zig b/src/internal_debug.zig index 63e96c5fe..6e0ab4f1e 100644 --- a/src/internal_debug.zig +++ b/src/internal_debug.zig @@ -10,5 +10,5 @@ pub inline fn assertInitialized() void { if (is_debug) std.debug.assert(glfw_initialized); } pub inline fn assumeInitialized() void { - glfw_initialized = true; + if (is_debug) glfw_initialized = true; }