Date: Thu, 21 Jul 2005 21:59:46 +0200 From: Pawel Worach <pawel.worach@gmail.com> To: Gleb Smirnoff <glebius@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netgraph netgraph.h Message-ID: <42DFFEB2.7020002@gmail.com> In-Reply-To: <200507211231.j6LCVgLY079731@repoman.freebsd.org> References: <200507211231.j6LCVgLY079731@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Gleb Smirnoff wrote: > glebius 2005-07-21 12:31:42 UTC > > FreeBSD src repository > > Modified files: > sys/netgraph netgraph.h > Log: > Enhance struct ng_hook - add hk_type field. This field will describe > data link type of the hook. It will be used to ease autoconfiguration > of netgraph and also to print warning messages, when incompatoble nodes > are connected together. > This broke the build, hk_type is not initialized in ng_base.c:139. cc -O2 -fno-strict-aliasing -pipe -march=pentium-m -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -include /usr/obj/usr/src/sys/IBMT41/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -I/usr/obj/usr/src/sys/IBMT41 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:139: warning: initialization makes integer from pointer without a cast /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:140: warning: initialization from incompatible pointer type /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: warning: braces around scalar initializer /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: warning: (near initialization for `ng_deadhook.hk_node') /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: error: empty scalar initializer /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: error: (near initialization for `ng_deadhook.hk_node') /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: error: initializer element is not constant /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: error: (near initialization for `ng_deadhook.hk_node') /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:142: warning: missing braces around initializer /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:142: warning: (near initialization for `ng_deadhook.hk_hooks') /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:150: error: initializer element is not constant /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:150: error: (near initialization for `ng_deadhook.hk_hooks') -- Pawel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42DFFEB2.7020002>