> To directly answer your question, since I think everyone so far has told[...]
> you that you should fix it, this answer from S/O [1]
>
> [1]
> http://stackoverflow.com/questions/3614691/casting-to-void-doesnt-remove-warn-unused-result-error/3615000#3615000
One should note that the question on S/O was about opening "/dev/null"
which is unlikely to fail.
The "write" that was mentioned in the original post is quite a different
story.
best regards,
Gert