Skip to content

Commit e99f754

Browse files
committed
build: fix a (harmless) scan-build warning for non-elements minimal builds
1 parent d677982 commit e99f754

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/transaction.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,8 @@ static int tx_to_bytes(const struct wally_tx *tx,
21112111
p += varbuff_to_bytes(output->rangeproof, output->rangeproof_len, p);
21122112
}
21132113
}
2114+
#else
2115+
(void)p; /* Prevent scan-build warning in non-elements builds */
21142116
#endif
21152117
*written = n;
21162118
return WALLY_OK;

0 commit comments

Comments
 (0)