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:
parent
75673fed70
commit
0d5804c527
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user