GCC warn unused result

From Birnam Designs Wiki

Jump to: navigation, search

To get rid of a warn_unused_result warning in gcc, wrap the code with if(). Example:

if (write(a, b, c) < 0) { }
Share This!
This page was last modified on 11 February 2010, at 20:16. This page has been accessed 745 times.