Unix
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Unix

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 15th, 2008, 01:20 PM
Barry deFreese
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
New clean-up patch for gnumach

Hi folks,

I've been lazy and useless for months now so I thought I'd do some more
gnumach clean-up. Here is a patch to fix several "implicit declaration
of function" warnings.

Let me know what you think.

Thanks,

Barry

Reply With Quote
  #2  
Old July 15th, 2008, 08:00 PM
Samuel Thibault
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
New clean-up patch for gnumach

Samuel Thibault, le Wed 16 Jul 2008 00:21:42 +0100, a :
You forgot to include the hook that adds chario.h ;)

Same for model_dep.h

Samuel

Reply With Quote
  #3  
Old July 15th, 2008, 08:39 PM
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
New clean-up patch for gnumach

Hi,

Tue, Jul 15, 2008 at 12:27:02PM -0400, Barry deFreese wrote:

Here is a patch to fix several "implicit declaration of function"
warnings.

+extern void cninit();

If a function does not take any parameters, I think it's better to
always state it explicitely in the prototype, i.e.

extern void cninit(void);

the compiler thinks that the paremeters are just not stated in
the prototype, and won't warn if the function is wrongly called with
parameters

(Note that in the function *definition*, where the function is actually
implemented, () is equivalent to (void), but in the prototype it's not!)

-antrik-

Reply With Quote
  #4  
Old July 15th, 2008, 08:39 PM
Samuel Thibault
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
New clean-up patch for gnumach

Samuel Thibault, le Wed 16 Jul 2008 00:21:42 +0100, a :
You forgot to include the hook that adds chario.h ;)

Same for mach_port.h

Samuel

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Unix > New clean-up patch for gnumach


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek