|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ed] Two more buglets |
Date: | Tue, 12 Apr 2011 17:48:49 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Martin Guy wrote:
main_loop.c: In function 'exec_command': main_loop.c:611: warning: ignoring return value of 'system', declared with attribute warn_unused_result Dunno if that matters
My version of gcc does not warn about this, but I have just checked and the return value of 'system' has been ignored by GNU ed since version 0.1.
Of course I would like to fix this. Please, what do you all think should do ed in case 'system' fails to execute succesfully? Ignoring it like now and shut-up the compiler warning, or perhaps showing an error message like "can't execute command"?
Thanks, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |