GNOME Bugzilla – Bug 688684
Check return value of write() in gck-debug.c and gcr-debug.c
Last modified: 2012-11-20 08:16:08 UTC
With some recent version of libc*) the write() system call got marked with the warn_unused_result attribute. Because of that gcc now rejects gck-debug.c and gcr-debug.c in -Werror mode. *) 2.15-0ubuntu20 here
Created attachment 229413 [details] [review] proposed patch
Actually "recently" is relative... That attribute got added in 2005 already: http://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=0476597b28eaabb742a138c0551b93c5b69c6e5c No the big, but side-tracking question is why gcc only started to complain now.
Review of attachment 229413 [details] [review]: Looks good. Please push to master.
thank you for review. merged.