ssyuan / memlink

Automatically exported from code.google.com/p/memlink
0 stars 0 forks source link

warnings in dumpfile.c #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Since warning are treated as errors, scons fails to build memlink.

cc1: warnings being treated as errors
dumpfile.c: In function 'loaddump':
dumpfile.c:133: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:142: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:145: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:164: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:168: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:170: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:172: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:174: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:178: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
dumpfile.c:217: error: ignoring return value of 'fread', declared with 
attribute warn_unused_result
scons: *** [dumpfile.o] Error 1
scons: building terminated because of errors.

Original issue reported on code.google.com by yaojingguo@gmail.com on 19 Oct 2010 at 1:53

GoogleCodeExporter commented 8 years ago
你用的什么版本的gcc?

Original comment by zhaowei...@gmail.com on 19 Oct 2010 at 6:31

GoogleCodeExporter commented 8 years ago
4.4.3

Original comment by yaojingguo@gmail.com on 19 Oct 2010 at 6:47