Date: Tue, 22 Dec 1998 02:58:01 +1100 From: Bruce Evans <bde@zeta.org.au> To: cvs-committers@FreeBSD.ORG, dillon@apollo.backplane.com Subject: Re: Odd compilation warning making kernel Message-ID: <199812211558.CAA15440@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> This is odd. compiling netinet/ip_output.c : > >cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -include opt_global.h -aout ../../netinet/ip_output.c >../../netinet/ip_output.c:67: warning: parameter names (without types) in function declaration >../../netinet/ip_output.c:67: warning: data definition has no type or storage class >../../netinet/ip_output.c:67: warning: parameter names (without types) in function declaration >../../netinet/ip_output.c:67: warning: data definition has no type or storage class > > The line is: > >static MALLOC_DEFINE(M_IPMOPTS, "ip_moptions", "internet multicast options"); This is just what gcc does for certain garbage declarations at file scope: garbage_in(nothing, out); MALLOC_DEFINE() expands to something involving SYSINIT() and SYSUNINIT() because <sys/kernel.h> is not included. <sys/kernel.h> is not included because the dummynet changes blew away about 2 months worth of previous commits. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812211558.CAA15440>