Earlier quoted context omitted.
Not if you use GCC. https://godbolt.org/z/zYdc9ej88 clang gets this right.
You've defined that function with an attribute saying not to ignore the returned value. Is it right to explicitly silence an explicit warning?
I encounter this when trying to do best-effort logging in a failure path. I call some function to log and error and maybe it fails. If it does, what, exactly, am I going to do about it? Log harder?