Commit bc0b0c50 authored by Lev Walkin's avatar Lev Walkin

remove warnings

parent 1fa31c9e
......@@ -108,7 +108,6 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
*/
switch(ctx->phase) {
case 0: {
ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 0", td->name);
/*
* Fetch preamble.
*/
......@@ -118,6 +117,8 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
size_t preamble_bytes = ((7 + preamble_bits) >> 3);
uint8_t *pbytes;
ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 0", td->name);
ASN_DEBUG(
"Expecting preamble bits %zu for %s (including %d extension bits)",
preamble_bits, td->name, has_extensions_bit);
......@@ -140,11 +141,12 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
NEXT_PHASE(ctx);
/* FALL THROUGH */
case 1: {
ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 1", td->name);
/* Decode components of the extension root */
asn_per_data_t *preamble = ctx->ptr;
size_t edx;
ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 1", td->name);
for(edx = (ctx->step >> 1); edx < td->elements_count;
edx++, ctx->step = (ctx->step & ~1) + 2) {
asn_TYPE_member_t *elm = &td->elements[edx];
......@@ -217,7 +219,6 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
NEXT_PHASE(ctx);
/* FALL THROUGH */
case 2: {
ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 2", td->name);
/* Cleanup preamble. */
asn_per_data_t *preamble = ctx->ptr;
asn_per_data_t *extadds;
......@@ -233,6 +234,9 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
const uint8_t *cptr;
uint8_t *uptr;
} unconst;
ASN_DEBUG("OER SEQUENCE %s Decoding PHASE 2", td->name);
unconst.cptr = preamble->buffer;
FREEMEM(unconst.uptr);
preamble->buffer = 0;
......
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