John Ellson <[EMAIL PROTECTED]> writes:

> I would suspect so too, but I recently learned in another project that 
> casting the
> result of functions to (void) is not portable.  In particular Sun's and 
> SGI's compilers
> don't like that technique.   Perhaps that doesn't matter to gnucash if 
> it is gcc only?

Exactly.

> Assigning to a variable of the right type is probably better (more 
> portable), but I'm a bit
> surprised that you are not seeing: "warning: value computed is not used" 
> instead?
> Thats perhaps becasue I don't properly understand the warning in the 
> other project.

Could be.

> John

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [EMAIL PROTECTED]                        PGP key available
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to