Commit Graph

12 Commits

Author SHA1 Message Date
Oliver Smith f32502e9c9 skeletons: fix misleading indentations
After upgrading our CI environment to use Debian 12 with
GCC 12, it complains about the following misleading indentations in
generated code in osmo-remsim.git. Fix it to be able to compile with
--enable-werror again.

../../../../src/osmo-remsim/src/rspro/INTEGER.c: In function ‘INTEGER_decode_aper’:
../../../../src/osmo-remsim/src/rspro/INTEGER.c:774:33: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
  774 |                                 if((specs && specs->field_unsigned)
      |                                 ^~
../../../../src/osmo-remsim/src/rspro/INTEGER.c:778:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by t
he ‘if’
  778 |                                         ASN_DEBUG("Got value %ld + low %lld",
      |                                         ^~~~~~~~~
cc1: all warnings being treated as errors
../../../../src/osmo-remsim/src/rspro/constr_CHOICE.c: In function ‘CHOICE_encode_aper’:
../../../../src/osmo-remsim/src/rspro/constr_CHOICE.c:1134:17: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 1134 |                 if(per_put_few_bits(po, present, ct->range_bits))
      |                 ^~
../../../../src/osmo-remsim/src/rspro/constr_CHOICE.c:1137:25: note: ...this statement, but the latter is misleadingly indented as if it were guard
ed by the ‘if’
 1137 |                         return elm->type->aper_encoder(elm->type, elm->per_constraints,
      |                         ^~~~~~
cc1: all warnings being treated as errors
../../../../src/osmo-remsim/src/rspro/per_decoder.c: In function ‘aper_decode’:
../../../../src/osmo-remsim/src/rspro/per_decoder.c:161:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
  161 |         if(!td->aper_decoder)
      |         ^~
../../../../src/osmo-remsim/src/rspro/per_decoder.c:163:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded
by the ‘if’
  163 |                 rval = td->aper_decoder(opt_codec_ctx, td, 0, sptr, &pd);
      |                 ^~~~

Related: OS#6057
Change-Id: I2260df8f8ab8eaf5c2aac3c330f87dba4691c01e
2023-07-17 11:41:18 +02:00
Harald Welte 498c97170c port/merge Eurecom APER support from OPENAIRMME
Eurecom has developed APER support for asn1c as part of the OPENAIRMME
softare (a LTE MME).  This is too important to let it bit-rout out
of asn1c.  Let's forward-port and merge it.
2015-08-30 16:33:07 +02:00
Lev Walkin fe1ffaff23 removed warnings in debug mode compilation 2010-10-25 21:07:59 -07:00
Lev Walkin 08b30bb728 padding change 2007-06-26 08:24:50 +00:00
Lev Walkin 31c46d50b2 counting overhead 2007-06-26 06:46:04 +00:00
Lev Walkin d00657f652 per_get_undo() 2007-06-26 02:51:10 +00:00
Lev Walkin 5b78e1cbcb uper extensions decoding 2007-06-24 06:26:47 +00:00
Lev Walkin 0a8aa6043f per encoding support 2006-09-18 20:05:55 +00:00
Lev Walkin 21f927721d return number of bits 2006-09-17 11:31:55 +00:00
Lev Walkin bc6917730d more granular PER encoding 2006-09-17 11:02:53 +00:00
Lev Walkin 1d9e8dd64e added stack control to PER 2005-12-07 05:46:03 +00:00
Lev Walkin 59b176ee35 upgrade: PER related changes 2005-11-26 11:25:14 +00:00