fix warnings

This commit is contained in:
Lev Walkin 2017-08-31 01:00:00 -07:00
parent fc89b9d2bc
commit 71191ba9f0
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;