Commit b660368a authored by Evgeniy Isaev's avatar Evgeniy Isaev Committed by Mouse

Fixed `unused-variable` warning on release build

parent b34f7bf1
......@@ -271,6 +271,7 @@ BIT_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr,
const BIT_STRING_t *b = BIT_STRING__compactify(bptr, &compact_b);
const asn_OCTET_STRING_specifics_t *specs = td->specifics;
(void)specs;
assert(specs && specs->subvariant == ASN_OSUBV_BIT);
if(a && b) {
......
......@@ -2199,6 +2199,7 @@ OCTET_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr,
const OCTET_STRING_t *a = aptr;
const OCTET_STRING_t *b = bptr;
(void)specs;
assert(!specs || specs->subvariant != ASN_OSUBV_BIT);
if(a && b) {
......
......@@ -43,6 +43,7 @@ asn_random_between(intmax_t lb, intmax_t rb) {
uintmax_t value = 0;
uintmax_t got_entropy = 0;
(void)intmax_max;
assert(RAND_MAX > 0xffffff); /* Seen 7ffffffd! */
assert(range < intmax_max);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment