Module Name: src Committed By: riastradh Date: Fri Jul 21 11:26:23 UTC 2023
Modified Files: src/sys/sys: rbtree.h Log Message: rbtree(3): No (rb_tree_t) for constant initializer. This is a compound literal, which is not formally valid as a constant initializer. XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/sys/rbtree.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/rbtree.h diff -u src/sys/sys/rbtree.h:1.7 src/sys/sys/rbtree.h:1.8 --- src/sys/sys/rbtree.h:1.7 Tue Jul 18 11:46:47 2023 +++ src/sys/sys/rbtree.h Fri Jul 21 11:26:23 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: rbtree.h,v 1.7 2023/07/18 11:46:47 riastradh Exp $ */ +/* $NetBSD: rbtree.h,v 1.8 2023/07/21 11:26:23 riastradh Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -189,7 +189,7 @@ typedef struct rb_tree { #define RB_TREE_INIT_TYPECHECK(t) \ 0*sizeof(&(t) - (struct rb_tree *)0) -#define RB_TREE_INITIALIZER(t, ops) (rb_tree_t) \ +#define RB_TREE_INITIALIZER(t, ops) \ { \ .rbt_ops = (ops) + RB_TREE_INIT_TYPECHECK(t), \ RBDEBUG_TREE_INITIALIZER(t) \