examples/hello_zig: Fix unused return value

Zig don't allow unused return value, so let's discard it explicitly.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2022-09-09 10:11:19 +00:00 committed by Xiang Xiao
parent 75673fed70
commit 0d5804c527

View File

@ -35,5 +35,6 @@ pub extern fn printf(_format: [*:0]const u8) c_int;
pub export fn hello_zig_main(_argc: c_int, _argv: [*]const [*]const u8) c_int {
_ = _argc;
_ = _argv;
printf("Hello, Zig!\n");
_ = printf("Hello, Zig!\n");
return 0;
}