Skip to content

Commit df056df

Browse files
committed
schema parser MAINTENANCE move variable used only in Debug build mode under ifndef NDEBUG
1 parent ba81ef8 commit df056df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resolve.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7006,13 +7006,14 @@ unres_schema_add_node(struct lys_module *mod, struct unres_schema *unres, void *
70067006
struct lys_node *snode)
70077007
{
70087008
int rc, log_hidden;
7009-
uint32_t u;
70107009
struct lyxml_elem *yin;
70117010

70127011
assert(unres && item && ((type != UNRES_LEAFREF) && (type != UNRES_INSTID) && (type != UNRES_WHEN)
70137012
&& (type != UNRES_MUST)));
70147013

70157014
#ifndef NDEBUG
7015+
uint32_t u;
7016+
70167017
/* check for duplicities in unres */
70177018
for (u = 0; u < unres->count; u++) {
70187019
if (unres->type[u] == type && unres->item[u] == item &&

0 commit comments

Comments
 (0)