Closed jiripospisil closed 1 year ago
Hello @jiripospisil,
Thanks. This is one way to deal with the warning, I suppose.
(As an alternative, we could say, "OK, GCC, you win", and tweak the code to actually detect and handle incomplete writes... Cosmopolitan has an xwrite
function which basically does this.)
Thank you!
Hello! If this was application code then absolutely, but the reason there was a previous attempt to ignore the errors is simply because it's used only to print usage or warn about illegal arguments on the command line.
The compilation fails when compiling on Arch Linux using
makepkg
(config):Use (void)! to avoid the error as suggested at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c34.