diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-11-11 11:12:24 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2021-11-11 11:30:45 +0000 |
| commit | e397acef3d6d6902a5d0a90abb1c78b3cd6cb326 (patch) | |
| tree | 432a4bd9eeb152e1195a5149a6421b4968006953 /src/control.zig | |
| parent | better pragma error messages (diff) | |
| download | glsl-view-e397acef3d6d6902a5d0a90abb1c78b3cd6cb326.tar.gz glsl-view-e397acef3d6d6902a5d0a90abb1c78b3cd6cb326.zip | |
remove/ignore unused variables
Diffstat (limited to 'src/control.zig')
| -rw-r--r-- | src/control.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/control.zig b/src/control.zig index 0d3356b..c282e7a 100644 --- a/src/control.zig +++ b/src/control.zig @@ -173,6 +173,8 @@ pub const ControlServer = struct { msg: c.lo_message, userdata: ?*c_void, ) callconv(.C) c_int { + _ = msg; + const self = @ptrCast(*ControlServer, @alignCast(@alignOf(ControlServer), userdata.?)); const path = _path[0..c.strlen(_path)]; const types = _types[0..@intCast(u32, argc)]; @@ -189,10 +191,13 @@ pub const ControlServer = struct { } fn handle_bundle_start(time: c.lo_timetag, userdata: ?*c_void) callconv(.C) c_int { + _ = time; + _ = userdata; return 1; } fn handle_bundle_end(userdata: ?*c_void) callconv(.C) c_int { + _ = userdata; return 1; } }; |
