From e397acef3d6d6902a5d0a90abb1c78b3cd6cb326 Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 11 Nov 2021 12:12:24 +0100 Subject: remove/ignore unused variables --- src/control.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/control.zig') 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; } }; -- cgit v1.2.3