schema compile BUGFIX deprecated grouping check
Fixes cesnet/netopeer2#1200
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index 5037876..46a6f8d 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -3935,10 +3935,11 @@
cont_flags |= LYS_CONFIG_W;
}
+ /* use grouping status to avoid errors */
struct lysp_node_uses fake_uses = {
.parent = pnode,
.nodetype = LYS_USES,
- .flags = 0, .next = NULL,
+ .flags = grp->flags & LYS_STATUS_MASK, .next = NULL,
.name = grp->name,
.dsc = NULL, .ref = NULL, .when = NULL, .iffeatures = NULL, .exts = NULL,
.refines = NULL, .augments = NULL