yanglint CHANGE allow setting features only on implemented (compiled) modules
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index f3e955c..d7e0626 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -737,6 +737,10 @@
/* enable specified features, if not specified, all the module's features are enabled */
u = 4; /* skip internal libyang modules */
while ((mod = ly_ctx_get_module_iter(ctx, &u))) {
+ if (!mod->implemented) {
+ continue;
+ }
+
for (i = 0; i < featsize; i++) {
if (!strcmp(feat[i], mod->name)) {
/* parse features spec */