mirror of https://gerrit.osmocom.org/asn1c
fix warnings
This commit is contained in:
parent
fc89b9d2bc
commit
71191ba9f0
|
@ -95,7 +95,6 @@ BIT_STRING_encode_oer(asn_TYPE_descriptor_t *td,
|
|||
const asn_oer_constraints_t *cts =
|
||||
constraints ? constraints : td->oer_constraints;
|
||||
ssize_t ct_size = cts ? cts->size : -1;
|
||||
size_t effective_size;
|
||||
size_t trailing_zeros = 0;
|
||||
int fix_last_byte = 0;
|
||||
|
||||
|
@ -122,7 +121,7 @@ BIT_STRING_encode_oer(asn_TYPE_descriptor_t *td,
|
|||
trailing_zeros = ct_bytes - st->size; /* Allow larger constraint */
|
||||
} else {
|
||||
uint8_t ub = st->bits_unused & 7;
|
||||
size_t len_len = oer_serialize_length(1 + st->size, cb, app_key);
|
||||
ssize_t len_len = oer_serialize_length(1 + st->size, cb, app_key);
|
||||
if(len_len < 0) ASN__ENCODE_FAILED;
|
||||
if(cb(&ub, 1, app_key) < 0) {
|
||||
ASN__ENCODE_FAILED;
|
||||
|
|
|
@ -134,6 +134,8 @@ CHOICE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
|||
asn_CHOICE_specifics_t *specs = (asn_CHOICE_specifics_t *)td->specifics;
|
||||
asn_TYPE_member_t *elements = td->elements;
|
||||
|
||||
(void)specs;
|
||||
|
||||
/*
|
||||
* Parts of the structure being constructed.
|
||||
*/
|
||||
|
@ -319,6 +321,7 @@ CHOICE_encode_oer(asn_TYPE_descriptor_t *td,
|
|||
asn_enc_rval_t er;
|
||||
|
||||
(void)constraints;
|
||||
(void)specs;
|
||||
|
||||
if(!sptr) ASN__ENCODE_FAILED;
|
||||
|
||||
|
|
|
@ -233,7 +233,7 @@ SET_OF_encode_oer(asn_TYPE_descriptor_t *td,
|
|||
ssize_t qty_len;
|
||||
asn_TYPE_member_t *elm;
|
||||
asn_anonymous_set_ *list;
|
||||
size_t n;
|
||||
int n;
|
||||
|
||||
(void)constraints;
|
||||
|
||||
|
|
Loading…
Reference in New Issue