Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260186 - games-arcade/tuxpuck-0.8.2-r1 error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
Summary: games-arcade/tuxpuck-0.8.2-r1 error: ignoring return value of 'fwrite', decla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2009-02-24 21:43 UTC by Magnus Granberg
Modified: 2009-02-27 00:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log of tuxpuck-8.2-r1 (games-arcade_tuxpuck-0.8.2-r1.log,5.02 KB, text/plain)
2009-02-24 21:45 UTC, Magnus Granberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Granberg gentoo-dev 2009-02-24 21:43:47 UTC
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.
Comment 1 Magnus Granberg gentoo-dev 2009-02-24 21:45:52 UTC
Created attachment 183079 [details]
Build log of tuxpuck-8.2-r1
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-02-27 00:59:20 UTC
fixed.  thanks for the bug report.