| ^~~~~~~~~~~~~~ | lyd_is_default lib/northbound.c:452:48: warning: passing argument 2 of 'nb_operation_is_valid' from incompatible pointer type [-Wincompatible-pointer-types] 452 | if (nb_operation_is_valid(NB_OP_CREATE, dnode->schema)) | ~~~~~^~~~~~~~ | | | const struct lysc_node * const In file included from lib/libfrr.h:31, from lib/northbound.c:22: lib/northbound.h:1090:30: note: expected 'const struct lys_node *' but argument is of type 'const struct lysc_node * const' 1090 | const struct lys_node *snode); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ lib/northbound.c:454:53: warning: passing argument 2 of 'nb_operation_is_valid' from incompatible pointer type [-Wincompatible-pointer-types] 454 | else if (nb_operation_is_valid(NB_OP_MODIFY, dnode->schema)) | ~~~~~^~~~~~~~ | | | const struct lysc_node * const In file included from lib/libfrr.h:31, from lib/northbound.c:22: lib/northbound.h:1090:30: note: expected 'const struct lys_node *' but argument is of type 'const struct lysc_node * const' 1090 | const struct lys_node *snode); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ lib/northbound.c:463:48: warning: passing argument 2 of 'nb_operation_is_valid' from incompatible pointer type [-Wincompatible-pointer-types] 463 | if (nb_operation_is_valid(NB_OP_CREATE, dnode->schema)) | ~~~~~^~~~~~~~ | | | const struct lysc_node * const In file included from lib/libfrr.h:31, from lib/northbound.c:22: lib/northbound.h:1090:30: note: expected 'const struct lys_node *' but argument is of type 'const struct lysc_node * const' 1090 | const struct lys_node *snode); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ lib/northbound.c:468:3: warning: implicit declaration of function 'LY_TREE_FOR'; did you mean 'LY_TREE_H_'? [-Wimplicit-function-declaration] 468 | LY_TREE_FOR (dnode->child, child) { | ^~~~~~~~~~~ | LY_TREE_H_ lib/northbound.c:468:21: error: 'const struct lyd_node' has no member named 'child' 468 | LY_TREE_FOR (dnode->child, child) { | ^~ lib/northbound.c:468:36: error: expected ';' before '{' token 468 | LY_TREE_FOR (dnode->child, child) { | ^~ | ; lib/northbound.c: In function 'nb_config_diff_deleted': lib/northbound.c:484:48: warning: passing argument 2 of 'nb_operation_is_valid' from incompatible pointer type [-Wincompatible-pointer-types] 484 | if (nb_operation_is_valid(NB_OP_DESTROY, dnode->schema)) | ~~~~~^~~~~~~~ | | | const struct lysc_node * const In file included from lib/libfrr.h:31, from lib/northbound.c:22: lib/northbound.h:1090:30: note: expected 'const struct lys_node *' but argument is of type 'const struct lysc_node * const' 1090 | const struct lys_node *snode); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ lib/northbound.c:495:21: error: 'const struct lyd_node' has no member named 'child' 495 | LY_TREE_FOR (dnode->child, child) { | ^~ lib/northbound.c:495:36: error: expected ';' before '{' token 495 | LY_TREE_FOR (dnode->child, child) { | ^~ | ; lib/northbound.c: In function 'nb_config_diff': lib/northbound.c:509:9: warning: implicit declaration of function 'lyd_diff' [-Wimplicit-function-declaration] 509 | diff = lyd_diff(config1->dnode, config2->dnode, | ^~~~~~~~ lib/northbound.c:510:4: error: 'LYD_DIFFOPT_WITHDEFAULTS' undeclared (first use in this function); did you mean 'LYD_DIFF_DEFAULTS'? 510 | LYD_DIFFOPT_WITHDEFAULTS); | ^~~~~~~~~~~~~~~~~~~~~~~~ | LYD_DIFF_DEFAULTS lib/northbound.c:513:22: error: invalid use of undefined type 'struct lyd_difflist' 513 | for (int i = 0; diff->type[i] != LYD_DIFF_END; i++) { | ^~ lib/northbound.c:513:35: error: 'LYD_DIFF_END' undeclared (first use in this function); did you mean 'LYS_IFF_AND'? 513 | for (int i = 0; diff->type[i] != LYD_DIFF_END; i++) { | ^~~~~~~~~~~~ | LYS_IFF_AND lib/northbound.c:514:3: error: unknown type name 'LYD_DIFFTYPE'; did you mean 'LY_IN_TYPE'? 514 | LYD_DIFFTYPE type; | ^~~~~~~~~~~~ | LY_IN_TYPE lib/northbound.c:517:14: error: invalid use of undefined type 'struct lyd_difflist' 517 | type = diff->type[i]; | ^~ lib/northbound.c:520:8: error: 'LYD_DIFF_CREATED' undeclared (first use in this function) 520 | case LYD_DIFF_CREATED: | ^~~~~~~~~~~~~~~~ lib/northbound.c:521:16: error: invalid use of undefined type 'struct lyd_difflist' 521 | dnode = diff->second[i]; | ^~ lib/northbound.c:524:8: error: 'LYD_DIFF_DELETED' undeclared (first use in this function); did you mean 'LYS_DEV_DELETE'? 524 | case LYD_DIFF_DELETED: | ^~~~~~~~~~~~~~~~ | LYS_DEV_DELETE lib/northbound.c:525:16: error: invalid use of undefined type 'struct lyd_difflist' 525 | dnode = diff->first[i]; | ^~ lib/northbound.c:528:8: error: 'LYD_DIFF_CHANGED' undeclared (first use in this function); did you mean 'LYS_IFF_AND'? 528 | case LYD_DIFF_CHANGED: | ^~~~~~~~~~~~~~~~ | LYS_IFF_AND lib/northbound.c:529:16: error: invalid use of undefined type 'struct lyd_difflist' 529 | dnode = diff->second[i]; | ^~ lib/northbound.c:533:8: error: 'LYD_DIFF_MOVEDAFTER1' undeclared (first use in this function) 533 | case LYD_DIFF_MOVEDAFTER1: | ^~~~~~~~~~~~~~~~~~~~ lib/northbound.c:534:8: error: 'LYD_DIFF_MOVEDAFTER2' undeclared (first use in this function) 534 | case LYD_DIFF_MOVEDAFTER2: | ^~~~~~~~~~~~~~~~~~~~ lib/northbound.c:540:2: warning: implicit declaration of function 'lyd_free_diff'; did you mean 'lyd_free_tree'? [-Wimplicit-function-declaration] 540 | lyd_free_diff(diff); | ^~~~~~~~~~~~~ | lyd_free_tree lib/northbound.c: In function 'nb_candidate_edit': lib/northbound.c:554:20: error: invalid use of undefined type 'const struct lys_node' 554 | if (nb_node->snode->nodetype == LYS_LEAFLIST) | ^~ lib/northbound.c:563:3: error: 'ly_errno' undeclared (first use in this function); did you mean 'h_errno'? 563 | ly_errno = 0; | ^~~~~~~~ | h_errno lib/northbound.c:566:10: error: 'LYD_PATH_OPT_UPDATE' undeclared (first use in this function); did you mean 'LYD_PATH_TYPE'? 566 | LYD_PATH_OPT_UPDATE); | ^~~~~~~~~~~~~~~~~~~ | LYD_PATH_TYPE lib/northbound.c:611:5: warning: implicit declaration of function 'lyd_free'; did you mean 'ly_in_free'? [-Wimplicit-function-declaration] 611 | lyd_free(dep_dnode); | ^~~~~~~~ | ly_in_free lib/northbound.c: In function 'nb_candidate_validate_yang': lib/northbound.c:658:6: warning: implicit declaration of function 'lyd_validate'; did you mean 'lyd_validate_op'? [-Wimplicit-function-declaration] 658 | if (lyd_validate(&candidate->dnode, | ^~~~~~~~~~~~ | lyd_validate_op lib/northbound.c:659:5: error: 'LYD_OPT_STRICT' undeclared (first use in this function); did you mean 'LYD_PARSE_STRICT'? 659 | LYD_OPT_STRICT | LYD_OPT_CONFIG | LYD_OPT_WHENAUTODEL, | ^~~~~~~~~~~~~~ | LYD_PARSE_STRICT lib/northbound.c:659:22: error: 'LYD_OPT_CONFIG' undeclared (first use in this function); did you mean 'LYS_SET_CONFIG'? 659 | LYD_OPT_STRICT | LYD_OPT_CONFIG | LYD_OPT_WHENAUTODEL, | ^~~~~~~~~~~~~~ | LYS_SET_CONFIG lib/northbound.c:659:39: error: 'LYD_OPT_WHENAUTODEL' undeclared (first use in this function) 659 | LYD_OPT_STRICT | LYD_OPT_CONFIG | LYD_OPT_WHENAUTODEL, | ^~~~~~~~~~~~~~~~~~~ lib/northbound.c: In function 'nb_candidate_validate_code': lib/northbound.c:680:38: error: expected ';' before '{' token 680 | LY_TREE_FOR (candidate->dnode, root) { | ^~ | ; lib/northbound.c:677:6: warning: unused variable 'ret' [-Wunused-variable] 677 | int ret; | ^~~ lib/northbound.c:676:33: warning: unused variable 'child' [-Wunused-variable] 676 | struct lyd_node *root, *next, *child; | ^~~~~ lib/northbound.c:676:26: warning: unused variable 'next' [-Wunused-variable] 676 | struct lyd_node *root, *next, *child; | ^~~~ lib/northbound.c:675:23: warning: unused variable 'cb' [-Wunused-variable] 675 | struct nb_config_cb *cb; | ^~ lib/northbound.c:709:1: warning: no return statement in function returning non-void [-Wreturn-type] 709 | } | ^ lib/northbound.c: In function 'nb_log_config_callback': lib/northbound.c:891:39: warning: passing argument 1 of 'yang_snode_is_typeless_data' from incompatible pointer type [-Wincompatible-pointer-types] 891 | if (yang_snode_is_typeless_data(dnode->schema)) | ~~~~~^~~~~~~~ | | | const struct lysc_node * const In file included from lib/northbound.h:27, from lib/libfrr.h:31, from lib/northbound.c:22: lib/yang.h:279:64: note: expected 'const struct lys_node *' but argument is of type 'const struct lysc_node * const' 279 | extern bool yang_snode_is_typeless_data(const struct lys_node *snode); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ lib/northbound.c: In function 'nb_transaction_apply_finish': lib/northbound.c:1434:10: warning: assignment to 'const struct lyd_node *' from incompatible pointer type 'struct lyd_node_inner * const' [-Wincompatible-pointer-types] 1434 | dnode = dnode->parent; | ^ lib/northbound.c:1465:10: warning: assignment to 'const struct lyd_node *' from incompatible pointer type 'struct lyd_node_inner * const' [-Wincompatible-pointer-types] 1465 | dnode = dnode->parent; | ^ lib/northbound.c: In function 'nb_oper_data_iter_children': lib/northbound.c:1491:20: error: invalid use of undefined type 'const struct lys_node' 1491 | LY_TREE_FOR (snode->child, child) { | ^~ lib/northbound.c:1491:35: error: expected ';' before '{' token 1491 | LY_TREE_FOR (snode->child, child) { | ^~ | ; lib/northbound.c:1502:1: warning: no return statement in function returning non-void [-Wreturn-type] 1502 | } | ^ In file included from lib/northbound.c:20: lib/northbound.c: In function 'nb_oper_data_iter_leaf': lib/northbound.c:1512:31: error: invalid use of undefined type 'const struct lys_node' 1512 | if (CHECK_FLAG(nb_node->snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1516:6: warning: implicit declaration of function 'lys_is_key'; did you mean 'lysc_is_key'? [-Wimplicit-function-declaration] 1516 | if (lys_is_key((struct lys_node_leaf *)nb_node->snode, NULL)) | ^~~~~~~~~~ | lysc_is_key In file included from lib/northbound.c:20: lib/northbound.c: In function 'nb_oper_data_iter_leaflist': lib/northbound.c:1568:31: error: invalid use of undefined type 'const struct lys_node' 1568 | if (CHECK_FLAG(nb_node->snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c: In function 'nb_oper_data_iter_list': lib/northbound.c:1636:25: error: invalid use of undefined type 'struct lys_node_list' 1636 | "[%s='%s']", slist->keys[i]->name, | ^~ In file included from lib/northbound.c:20: lib/northbound.c: In function 'nb_oper_data_iter_node': lib/northbound.c:1672:25: error: invalid use of undefined type 'const struct lys_node' 1672 | && CHECK_FLAG(snode->nodetype, LYS_CONTAINER | LYS_LIST)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1677:21: error: invalid use of undefined type 'const struct lys_node' 1677 | if (!first && snode->nodetype != LYS_USES) { | ^~ lib/northbound.c:1681:17: error: invalid use of undefined type 'const struct lys_node' 1681 | parent = snode->parent; | ^~ lib/northbound.c:1682:26: error: invalid use of undefined type 'struct lys_node' 1682 | while (parent && parent->nodetype == LYS_USES) | ^~ lib/northbound.c:1683:19: error: invalid use of undefined type 'struct lys_node' 1683 | parent = parent->parent; | ^~ lib/northbound.c:1689:23: error: invalid use of undefined type 'struct lys_node' 1689 | if (parent && parent->nodetype == LYS_AUGMENT) | ^~ lib/northbound.c:1692:11: error: invalid use of undefined type 'const struct lys_node' 1692 | snode->module->name, snode->name); | ^~ lib/northbound.c:1692:32: error: invalid use of undefined type 'const struct lys_node' 1692 | snode->module->name, snode->name); | ^~ lib/northbound.c:1696:11: error: invalid use of undefined type 'const struct lys_node' 1696 | snode->name); | ^~ lib/northbound.c:1699:17: error: invalid use of undefined type 'const struct lys_node' 1699 | nb_node = snode->priv; | ^~ lib/northbound.c:1700:15: error: invalid use of undefined type 'const struct lys_node' 1700 | switch (snode->nodetype) { | ^~ In file included from lib/northbound.c:20: lib/northbound.c: In function 'nb_oper_data_iterate': lib/northbound.c:1752:32: error: invalid use of undefined type 'const struct lys_node' 1752 | if (!CHECK_FLAG(nb_node->snode->nodetype, LYS_CONTAINER | LYS_LIST)) { | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1764:2: error: 'ly_errno' undeclared (first use in this function); did you mean 'h_errno'? 1764 | ly_errno = 0; | ^~~~~~~~ | h_errno lib/northbound.c:1766:9: error: 'LYD_PATH_OPT_UPDATE' undeclared (first use in this function); did you mean 'LYD_PATH_TYPE'? 1766 | LYD_PATH_OPT_UPDATE | LYD_PATH_OPT_NOPARENTRET); | ^~~~~~~~~~~~~~~~~~~ | LYD_PATH_TYPE lib/northbound.c:1766:31: error: 'LYD_PATH_OPT_NOPARENTRET' undeclared (first use in this function) 1766 | LYD_PATH_OPT_UPDATE | LYD_PATH_OPT_NOPARENTRET); | ^~~~~~~~~~~~~~~~~~~~~~~~ lib/northbound.c:1777:26: warning: assignment to 'struct lyd_node *' from incompatible pointer type 'struct lyd_node_inner *' [-Wincompatible-pointer-types] 1777 | for (dn = dnode; dn; dn = dn->parent) { | ^ lib/northbound.c:1778:46: error: 'struct lyd_node' has no member named 'child' 1778 | if (dn->schema->nodetype != LYS_LIST || !dn->child) | ^~ lib/northbound.c:1793:18: error: 'struct lyd_node' has no member named 'child' 1793 | LY_TREE_FOR (dn->child, child) { | ^~ lib/northbound.c:1793:33: error: expected ';' before '{' token 1793 | LY_TREE_FOR (dn->child, child) { | ^~ | ; lib/northbound.c:1804:46: error: invalid use of undefined type 'struct lys_node_list' 1804 | != ((struct lys_node_list *)dn->schema)->keys_size) { | ^~ lib/northbound.c:1789:16: warning: unused variable 'n' [-Wunused-variable] 1789 | unsigned int n = 0; | ^ lib/northbound.c:1822:50: error: 'struct lyd_node' has no member named 'child' 1822 | if (dnode->schema->nodetype == LYS_LIST && dnode->child) | ^~ lib/northbound.c: In function 'nb_operation_is_valid': lib/northbound.c:1840:33: error: invalid use of undefined type 'const struct lys_node' 1840 | struct nb_node *nb_node = snode->priv; | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1846:24: error: invalid use of undefined type 'const struct lys_node' 1846 | if (!CHECK_FLAG(snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1849:16: error: invalid use of undefined type 'const struct lys_node' 1849 | switch (snode->nodetype) { | ^~ lib/northbound.c:1852:13: error: invalid use of undefined type 'struct lys_node_leaf' 1852 | if (sleaf->type.base != LY_TYPE_EMPTY) | ^~ lib/northbound.c:1857:19: error: invalid use of undefined type 'struct lys_node_container' 1857 | if (!scontainer->presence) | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1868:24: error: invalid use of undefined type 'const struct lys_node' 1868 | if (!CHECK_FLAG(snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1871:16: error: invalid use of undefined type 'const struct lys_node' 1871 | switch (snode->nodetype) { | ^~ lib/northbound.c:1874:13: error: invalid use of undefined type 'struct lys_node_leaf' 1874 | if (sleaf->type.base == LY_TYPE_EMPTY) | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1886:24: error: invalid use of undefined type 'const struct lys_node' 1886 | if (!CHECK_FLAG(snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1889:16: error: invalid use of undefined type 'const struct lys_node' 1889 | switch (snode->nodetype) { | ^~ lib/northbound.c:1901:13: error: invalid use of undefined type 'const struct lys_node' 1901 | if (snode->parent->nodetype == LYS_CASE) | ^~ lib/northbound.c:1903:13: error: invalid use of undefined type 'struct lys_node_leaf' 1903 | if (sleaf->when) | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1905:24: error: invalid use of undefined type 'struct lys_node_leaf' 1905 | if (CHECK_FLAG(sleaf->flags, LYS_MAND_TRUE) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1906:16: error: invalid use of undefined type 'struct lys_node_leaf' 1906 | || sleaf->dflt) | ^~ lib/northbound.c:1911:19: error: invalid use of undefined type 'struct lys_node_container' 1911 | if (!scontainer->presence) | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1922:24: error: invalid use of undefined type 'const struct lys_node' 1922 | if (!CHECK_FLAG(snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1925:16: error: invalid use of undefined type 'const struct lys_node' 1925 | switch (snode->nodetype) { | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1928:25: error: invalid use of undefined type 'const struct lys_node' 1928 | if (!CHECK_FLAG(snode->flags, LYS_USERORDERED)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1928:34: error: 'LYS_USERORDERED' undeclared (first use in this function); did you mean 'LYD_PARSE_ORDERED'? 1928 | if (!CHECK_FLAG(snode->flags, LYS_USERORDERED)) | ^~~~~~~~~~~~~~~ ./lib/zebra.h:392:38: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1937:24: error: invalid use of undefined type 'const struct lys_node' 1937 | if (!CHECK_FLAG(snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1941:24: error: invalid use of undefined type 'const struct lys_node' 1941 | if (!CHECK_FLAG(snode->flags, LYS_CONFIG_R)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1944:16: error: invalid use of undefined type 'const struct lys_node' 1944 | switch (snode->nodetype) { | ^~ lib/northbound.c:1950:19: error: invalid use of undefined type 'struct lys_node_container' 1950 | if (!scontainer->presence) | ^~ lib/northbound.c:1958:16: error: invalid use of undefined type 'const struct lys_node' 1958 | switch (snode->nodetype) { | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1964:24: error: invalid use of undefined type 'const struct lys_node' 1964 | if (CHECK_FLAG(snode->flags, LYS_CONFIG_W)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1973:16: error: invalid use of undefined type 'const struct lys_node' 1973 | switch (snode->nodetype) { | ^~ In file included from lib/northbound.c:20: lib/northbound.c:1985:23: error: invalid use of undefined type 'const struct lys_node' 1985 | if (CHECK_FLAG(snode->flags, LYS_CONFIG_W | LYS_CONFIG_R)) | ^~ ./lib/zebra.h:392:32: note: in definition of macro 'CHECK_FLAG' 392 | #define CHECK_FLAG(V,F) ((V) & (F)) | ^ lib/northbound.c:1988:16: error: invalid use of undefined type 'const struct lys_node' 1988 | switch (snode->nodetype) { | ^~ lib/northbound.c: In function 'nb_running_unset_entry_helper': lib/northbound.c:2099:21: error: 'const struct lyd_node' has no member named 'child' 2099 | LY_TREE_FOR (dnode->child, child) { | ^~ lib/northbound.c:2099:36: error: expected ';' before '{' token 2099 | LY_TREE_FOR (dnode->child, child) { | ^~ | ; lib/northbound.c: In function 'nb_running_get_entry_worker': lib/northbound.c:2141:9: warning: assignment to 'const struct lyd_node *' from incompatible pointer type 'struct lyd_node_inner * const' [-Wincompatible-pointer-types] 2141 | dnode = dnode->parent; | ^ lib/northbound.c: In function 'nb_init': lib/northbound.c:2301:26: warning: passing argument 1 of 'yang_snodes_iterate_all' from incompatible pointer type [-Wincompatible-pointer-types] 2301 | yang_snodes_iterate_all(nb_node_validate, 0, &errors); | ^~~~~~~~~~~~~~~~ | | | int (*)(const struct lys_node *, void *) In file included from lib/northbound.h:27, from lib/libfrr.h:31, from lib/northbound.c:22: lib/yang.h:224:52: note: expected 'yang_iterate_cb' {aka 'int (*)(const struct lys_node *, void *)'} but argument is of type 'int (*)(const struct lys_node *, void *)' 224 | extern int yang_snodes_iterate_all(yang_iterate_cb cb, uint16_t flags, | ~~~~~~~~~~~~~~~~^~ lib/northbound.c: In function 'nb_node_find': lib/northbound.c:183:1: warning: control reaches end of non-void function [-Wreturn-type] 183 | } | ^ At top level: lib/northbound.c:1087:12: warning: 'nb_callback_pre_validate' defined but not used [-Wunused-function] 1087 | static int nb_callback_pre_validate(struct nb_context *context, | ^~~~~~~~~~~~~~~~~~~~~~~~ Makefile:7962: recipe for target 'lib/northbound.lo' failed make[2]: *** [lib/northbound.lo] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/frr-7.5.1' Makefile:4721: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/frr-7.5.1' package/pkg-generic.mk:292: recipe for target '/home/buildroot/autobuild/instance-2/output-1/build/frr-7.5.1/.stamp_built' failed make: *** [/home/buildroot/autobuild/instance-2/output-1/build/frr-7.5.1/.stamp_built] Error 2 make: *** Waiting for unfinished jobs.... CXX google/protobuf/compiler/java/java_service.lo CXX google/protobuf/compiler/java/java_shared_code_generator.lo CXX google/protobuf/compiler/java/java_string_field.lo CXX google/protobuf/compiler/java/java_string_field_lite.lo CXX google/protobuf/compiler/js/js_generator.lo CXX google/protobuf/compiler/js/well_known_types_embed.lo CXX google/protobuf/compiler/objectivec/objectivec_enum.lo CXX google/protobuf/compiler/objectivec/objectivec_enum_field.lo CXX google/protobuf/compiler/objectivec/objectivec_extension.lo CXX google/protobuf/compiler/objectivec/objectivec_field.lo CXX google/protobuf/compiler/objectivec/objectivec_file.lo CXX google/protobuf/compiler/objectivec/objectivec_generator.lo CXX google/protobuf/compiler/objectivec/objectivec_helpers.lo CXX google/protobuf/compiler/objectivec/objectivec_map_field.lo CXX google/protobuf/compiler/objectivec/objectivec_message.lo CXX google/protobuf/compiler/objectivec/objectivec_message_field.lo CXX google/protobuf/compiler/objectivec/objectivec_oneof.lo CXX google/protobuf/compiler/objectivec/objectivec_primitive_field.lo CXX google/protobuf/compiler/php/php_generator.lo CXX google/protobuf/compiler/python/python_generator.lo CXX google/protobuf/compiler/ruby/ruby_generator.lo CXXLD libprotobuf-lite.la CXXLD libprotobuf.la libtool: warning: library '/home/buildroot/autobuild/instance-2/output-1/per-package/protobuf/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/lib/libatomic.la' was moved. libtool: warning: library '/home/buildroot/autobuild/instance-2/output-1/per-package/protobuf/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/lib/libstdc++.la' was moved. libtool: warning: library '/home/buildroot/autobuild/instance-2/output-1/per-package/protobuf/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/lib/libatomic.la' was moved. libtool: warning: library '/home/buildroot/autobuild/instance-2/output-1/per-package/protobuf/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/lib/libstdc++.la' was moved. CXXLD libprotoc.la libtool: warning: library '/home/buildroot/autobuild/instance-2/output-1/per-package/protobuf/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/lib/libatomic.la' was moved. libtool: warning: library '/home/buildroot/autobuild/instance-2/output-1/per-package/protobuf/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/lib/libstdc++.la' was moved. CXXLD protoc make[3]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/protobuf-3.19.1/src' make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/protobuf-3.19.1' make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/protobuf-3.19.1' make: *** wait: No child processes. Stop.