aboutsummaryrefslogtreecommitdiffstats
path: root/src/output.zig
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-11-11 11:12:24 +0000
committers-ol <s+removethis@s-ol.nu>2021-11-11 11:30:45 +0000
commite397acef3d6d6902a5d0a90abb1c78b3cd6cb326 (patch)
tree432a4bd9eeb152e1195a5149a6421b4968006953 /src/output.zig
parentbetter pragma error messages (diff)
downloadglsl-view-e397acef3d6d6902a5d0a90abb1c78b3cd6cb326.tar.gz
glsl-view-e397acef3d6d6902a5d0a90abb1c78b3cd6cb326.zip
remove/ignore unused variables
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output.zig b/src/output.zig
index 2aa6802..f4c33d7 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -125,6 +125,11 @@ pub const WindowOutput = struct {
const userptr = c.glfwGetWindowUserPointer(win).?;
const self = @ptrCast(*WindowOutput, @alignCast(@alignOf(WindowOutput), userptr));
+ _ = self;
+ _ = scancode;
+ _ = action;
+ _ = mods;
+
switch (key) {
// c.GLFW_KEY_F => // toggle fullscreen
// c.GLFW_KEY_LEFT => // cycle through monitors
@@ -137,5 +142,8 @@ pub const WindowOutput = struct {
const userptr = c.glfwGetWindowUserPointer(win).?;
const self = @ptrCast(*WindowOutput, @alignCast(@alignOf(WindowOutput), userptr));
self.resized = true;
+
+ _ = width;
+ _ = height;
}
};