|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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- |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Unix > New clean-up patch for gnumach |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|