On Tue, 2012-09-04 at 17:08 +0530, Jatin Bodarya wrote: > Hello DEVs, Please help me > > In my mib2c generated code I cannot write any function which returns a value > !!!! > > For examples some of the warning are given below.. > Please help me, How can I resolve it ?? > > Thanks in advance.. > > ionline.c: In function 'handle_memory': > ionline.c:869:8: warning: ignoring return value of 'system', declared with > attribute warn_unused_result [-Wunused-result] > ionline.c:874:8: warning: ignoring return value of 'fscanf', declared with > attribute warn_unused_result [-Wunused-result]
These warnings are quite clear - read them! Further, the code mib2c generates calls neither 'system' nor 'fscanf' so this is bugs in code you have written and not included, so we can obviously not correct it for you. I would suggest that you look at line 869 and 874 of the file 'ionline.c'. /MF ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders