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