I have this check in my code:
if (res.args.condition != null and res.args.width != null) {
std.log.warn("Starting condition specified. Width setting ignored.", .{});
}
I have the warning when I build with Debug or ReleaseSafe optimization flags:
zig-out\bin\zcellterm.exe -w 10 -c "0101010" 126
warning: Starting condition specified. Width setting ignored.
[rest of the program’s output]
But I don’t when I build with ReleaseFast or ReleaseSmall:
zig-out\bin\zcellterm.exe -w 10 -c "0101010" 126
[the program’s usual output with no warning beforehands]
I’m using zig-clap which I think is building the arguments parser at comptime. Is this a compiler bug? A zig-clap bug? Or is this intended behavior? Should I open a GitHub issue somewhere if there isn’t one already for this?
You can try to reproduce using this branch from my repo, there’s a debug print function in there (the readme isn’t up to date, but all the functions in --help are implemented)