Skip to content

Commit 1beedf4

Browse files
committed
tx: fix a non-elements build warning
1 parent 8c616b3 commit 1beedf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/transaction.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,9 @@ int wally_tx_get_vsize(const struct wally_tx *tx, size_t *written)
19691969
int wally_tx_get_elements_weight_discount(const struct wally_tx *tx,
19701970
uint32_t flags, size_t *written)
19711971
{
1972+
#ifdef BUILD_ELEMENTS
19721973
size_t i, n = 0, is_elements = 0;
1974+
#endif /* BUILD_ELEMENTS */
19731975

19741976
if (written)
19751977
*written = 0;
@@ -2004,7 +2006,7 @@ int wally_tx_get_elements_weight_discount(const struct wally_tx *tx,
20042006
}
20052007
}
20062008
*written = n;
2007-
#endif
2009+
#endif /* BUILD_ELEMENTS */
20082010
return WALLY_OK;
20092011
}
20102012
#endif /* WALLY_ABI_NO_ELEMENTS */

0 commit comments

Comments
 (0)