Scoping question in C

pking123-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org pking123-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Sun Jun 12 15:14:19 UTC 2005


> You have also declared func() as returning an integer but you never
> use the return value. If you want to ignore the returned value you
> should use "(void)func();" in main(), or declare func() as "void
> func()" and lose the return statement. It will still work either way
> and even how you have shown it above. Adding the void declaration will
> just save you from an extra warning message or two.
> 

In my code, I merely pasted the code snippet from the original poster 
(WIlliam Park). He defined "func" as int, and never used the returned 
value either. Anyhoo, it shouldn't affect the output. The original 
point was regarding "x".

Paul

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list