[XForms] Genuine API changes to forms.h, glcanvas.h since XForms0.89

jason cipriani jac4 at mindless.com
Tue May 18 15:34:03 EDT 2004


> Why is it you want to change void returns to int returns, for functions that
> don't return a value?

Wasn't my idea!

>  You get warning in the function is compiled:
> 
> bar.c:1: warning: `return' with no value, in function returning non-void

That's only if you don't return anything, as in:

int func (void) {
  return;
}

The situation in question is this:

int func (void) {
  return 0;
}

func();

Where you call func() (which is properly written) but do nothing with the return value.

At least... I think it's the case. I don't think Angus was planning on changing a bunch of void-returning functions to int without actually making them return an 
error/success status... right?
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



More information about the Xforms mailing list