Subject: Re: CVS commit: src/sys/sys (protosw.h:1.39)
To: Christos Zoulas <christos@astron.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 08/28/2006 20:29:29
On Aug 28, 2006, at 5:51 PM, Christos Zoulas wrote:

> Just to make things clearer, I am compiling kernels with -Wextra - 
> Wno-unused,
> and these flags complain for incomplete structure initializers.

Perhaps we should be using explicit structure initializers instead, e.g.

struct foo aFoo = {
	.foo_field = 1,
	.foo_member = "woot",
};

Personally, I find:

	{ .p_name = NULL }

a lot nicer than

	{ 0, NULL { 0, 0 }, NULL, { NULL, NULL } }


-- thorpej