Description: when compiling with -D_FORTIFY_SOURCE=2, the compiler will generate warn-unused-results notifications for several functions. It is not sensible to do this for fwrite() since it is frequently unchecked and may not fail until fclose() which is not marked with __wur, making the fwrite() check noisy and pointless. Author: Matthias Klose Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563637 --- ./libio/stdio.h~ 2008-05-24 20:14:36.000000000 +0200 +++ ./libio/stdio.h 2009-03-27 20:59:20.000000000 +0100 @@ -682,7 +682,7 @@ This function is a possible cancellation points and therefore not marked with __THROW. */ extern size_t fwrite (__const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __s) __wur; + size_t __n, FILE *__restrict __s); __END_NAMESPACE_STD #ifdef __USE_GNU @@ -706,7 +706,7 @@ extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __wur; extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream) __wur; + size_t __n, FILE *__restrict __stream); #endif