From 622a9f4d86d77e65fc0943727c09a136e1fc02c3 Mon Sep 17 00:00:00 2001 From: Kami Development <1655+kamidev@users.noreply.github.com> Date: Fri, 14 Oct 2022 17:55:15 +0200 Subject: [PATCH] glfw: fix compilation with latest zig master (#574) See https://github.com/Vexu/zig/commit/0b1dd845d9ac15ade5748dcb6ffa6b868fdfe0c0 --- libs/glfw/system_sdk.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/glfw/system_sdk.zig b/libs/glfw/system_sdk.zig index 3b9c2ab9..c32bd8b9 100644 --- a/libs/glfw/system_sdk.zig +++ b/libs/glfw/system_sdk.zig @@ -210,7 +210,7 @@ fn determineSdkRoot(allocator: std.mem.Allocator, org: []const u8, name: []const ensureGit(allocator); // If the SDK exists, return it. Otherwise, clone it. - if (std.fs.openDirAbsolute(sdk_root_dir, .{})) { + if (std.fs.openDirAbsolute(sdk_root_dir, .{})) |_| { const current_revision = try getCurrentGitRevision(allocator, sdk_root_dir); if (!std.mem.eql(u8, current_revision, revision)) { // Update the SDK to the target revision. This may be either forward or backwards in