From owner-cvs-all Mon Dec 21 07:58:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA10267 for cvs-all-outgoing; Mon, 21 Dec 1998 07:58:07 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA10260 for ; Mon, 21 Dec 1998 07:58:05 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id CAA15440; Tue, 22 Dec 1998 02:58:01 +1100 Date: Tue, 22 Dec 1998 02:58:01 +1100 From: Bruce Evans Message-Id: <199812211558.CAA15440@godzilla.zeta.org.au> To: cvs-committers@FreeBSD.ORG, dillon@apollo.backplane.com Subject: Re: Odd compilation warning making kernel Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > 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 is not included. 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