[Freeswitch-dev] SOLVED - Compile issue on ubuntu

jay binks jaybinks at gmail.com
Tue Sep 13 16:27:56 MSD 2011

I was getting compile time issues on ubuntu ( only as of todays git pull
though... which is strange )

 src/switch_core.c: In function ‘switch_system_fork’:
 src/switch_core.c:2405: error: ignoring return value of ‘system’, declared
with attribute

fixed it by making like 2405 of switch_core.c

if ( system(cmd) ) {};

seems related to https://wiki.ubuntu.com/CompilerFlags

error: ignoring return value of 'int system(const char*)', declared
with attribute warn_unused_result

The return value from system(), write(), and similar functions should be
evaluated and handled appropriately. In cases where one absolutely must
throw away the return value, it can be discarded with an empty test:
if (system("...")) { } , though this is not recommended.

maybe a better solution would be to change compiler flags... not sure...
just letting someone smarter than me know about it :)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110913/1d881ef1/attachment-0001.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list