build: update to zig version 0.9.0

This commit is contained in:
Isaac Freund
2021-10-11 12:44:46 +02:00
parent 1edaa5ad21
commit c1d985ac29
62 changed files with 349 additions and 383 deletions

View File

@ -57,13 +57,13 @@ pub fn destroy(self: *Self) void {
util.gpa.destroy(node);
}
fn handleRequest(output_status: *zriver.OutputStatusV1, request: zriver.OutputStatusV1.Request, self: *Self) void {
fn handleRequest(output_status: *zriver.OutputStatusV1, request: zriver.OutputStatusV1.Request, _: *Self) void {
switch (request) {
.destroy => output_status.destroy(),
}
}
fn handleDestroy(output_status: *zriver.OutputStatusV1, self: *Self) void {
fn handleDestroy(_: *zriver.OutputStatusV1, self: *Self) void {
self.destroy();
}
@ -77,7 +77,7 @@ pub fn sendViewTags(self: Self) void {
if (node.view.surface == null) continue;
view_tags.append(node.view.current.tags) catch {
self.output_status.postNoMemory();
log.crit("out of memory", .{});
log.err("out of memory", .{});
return;
};
}