On 08/17/2010 02:18 PM, IOhannes m zmoelnig wrote:
On 2010-08-17 13:33, Willy WOLFF wrote:
Can we omit this flag in all Make.include and makefile_linux in CLFAGS? If yes, can you change that?
i would prefer to fix the warning rather than suppressing it.
fgmasdr IOhannes
Ok. I have this error when i compile it :
make[1]: Entering directory /home/will/develop/svn/iemlib/iem_mp3/src' touch iem_mp3.c cc -DPD -DUNIX -W -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -DDL_OPEN -fPIC -fno-stack-protector -I. -I/usr/local/src/pd/src -c - iem_mp3.o iem_mp3.c touch mp3play~.c cc -DPD -DUNIX -W -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -DDL_OPEN -fPIC -fno-stack-protector -I. -I/usr/local/src/pd/src -c - mp3play~.o mp3play~.c cc1: warnings being treated as errors mp3play~.c: In function ‘mp3play_tilde_read_frame_length_first’: mp3play~.c:3196: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c:3198: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c:3201: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c:3204: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c: In function ‘mp3play_tilde_read_frame_length_next’: mp3play~.c:3282: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c:3284: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c:3287: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c:3290: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c: In function ‘mp3play_tilde_do_open’: mp3play~.c:3445: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result mp3play~.c: In function ‘mp3play_tilde_perform’: mp3play~.c:3580: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result make[1]: *** [mp3play~.o] Error 1 make[1]: Leaving directory
/home/will/develop/svn/iemlib/iem_mp3/src'
make: *** [iem_mp3] Error 2
The result of the fread function is not used, so we could delete it?