title: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
body: <p>I got this error when compiling my programm in C. </p>
  
  <blockquote>
    <p>warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]</p>
  </blockquote>
  
  <p>On all my call to write.</p>
  
  <pre><code>FLAGS : -g -Wall -Werror -Wextra -g -O2 // or -Ofast (same result)
  </code></pre>
  
  <blockquote>
    <p>GCC Version: 5.4</p>
  </blockquote>
  
  <p>It happends when I'm trying to compile with -O2 or -Ofast. </p>
  
  <p>Someone can explain me, why that's not working? </p>
  
  <p>Thanks :) </p>