Make it compile with -Wextra on big endian machines (at lest the #if in the

definition of struct rb_ndoe on the endianess is the only explanation I have
why nobody complained about this on i386 - I don't understand why it makes a
difference for gcc though)
This commit is contained in:
martin 2006-10-15 19:04:28 +00:00
parent 76eb981a6d
commit 637106d04b
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: prop_rb.c,v 1.3 2006/10/12 04:43:20 thorpej Exp $ */
/* $NetBSD: prop_rb.c,v 1.4 2006/10/15 19:04:28 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -95,7 +95,7 @@ static const struct rb_node sentinel_node = {
.rb_nodes = { RBUNCONST(&sentinel_node),
RBUNCONST(&sentinel_node),
NULL },
.rb_sentinel = 1,
.rb_u.u_s = { .s_sentinel = 1, }
};
#endif /* __lint__ */