Compile with GCC 4.3.3 and glibc >=2.8 (FORTIFY_SOURCE=2) Compiler hit a warning about ignoring return value of 'fwrite', declared with attribute warn_unused_result but warnings is being treated as errors. Reproducible: Always Steps to Reproduce: 1.Compile tha package with gcc 4.3.3 and glibc >=2.8 from portage 2. 3. Actual Results: gcc -O2 -pipe -D_VERSION=\"0.8.2\" -g -Wall -g -Wall -Werror ttf2font.c `freetype-config --cflags --libs` -o ttf2font cc1: warnings being treated as errors ttf2font.c: In function 'write_glyph': ttf2font.c:36: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result ttf2font.c:37: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result ttf2font.c:38: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result ttf2font.c:39: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result ttf2font.c:40: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result ttf2font.c:43: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result ttf2font.c: In function 'main': ttf2font.c:71: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result make[2]: *** [ttf2font] Error 1 Expected Results: Would compile fine.
Created attachment 183079 [details] Build log of tuxpuck-8.2-r1
fixed. thanks for the bug report.