codenote / ratproxy

Automatically exported from code.google.com/p/ratproxy
5 stars 4 forks source link

fwrite not handled properly #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ratproxy.c: In function 'save_trace':
ratproxy.c:572: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
ratproxy.c:587: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
ratproxy.c: In function 'decode_flash':
ratproxy.c:615: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
http.c: In function 'send_request':
http.c:1056: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
http.c: In function 'send_response':
http.c:1318: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
+ exit 0
Executing(%install): /bin/sh -e /home/rpmbuild/rpm/tmp/rpm-tmp.98163

I was building and found following warning and it is easy to fix them with
return handling.

Original issue reported on code.google.com by rakesh.p...@gmail.com on 8 Nov 2008 at 3:38

GoogleCodeExporter commented 9 years ago
I am attaching a patch which quiets the compiler warnings (although it doesn't 
do
early exit from the functions if fwrite fails).

Original comment by elliot.m...@gmail.com on 19 Nov 2008 at 8:00

Attachments: