diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-11-11 15:44:52 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2022-11-14 09:52:14 +0100 |
commit | 48c038d3992a41ac96e43feae27be8a454506634 (patch) | |
tree | 1d3693842da85de5ec448bf80978f8bd1b56b40c /asn1/ranap/RANAP-PDU-Contents.asn | |
parent | 0c04a7e03f2c757cc0d5eebeb5ea501835712cc3 (diff) |
asn1: fix visibility warnings from generated code
Fix warnings from generated asn1 code in order to build osmo-iuh with
werror in a future patch:
../../include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h:29:23: error: ‘struct HNBAP_CriticalityDiagnostics_IE_List__Member’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
These visibility warnings come from "SEQUENCE … OF SEQUENCE" definitions
in the asn1 source files, as described in detail here:
https://github.com/vlm/asn1c/issues/430
It is not possible to tell gcc to just ignore these warnings since they
don't have their own type (unlike e.g. -Wuninitialized). Also it seems
like a huge effort to patch this in asn1c.
So work around the problem the same way the author of the issue worked
around it by rewriting the lines to "SEQUENCE … OF …-Value" and adding
a "…-Value ::= SEQUENCE" line below. Add a script in
asn1/utils/asn1_restructure_sequence_of_sequence.py for the
transformation and apply it.
Related: OS#4462
Change-Id: If84445ed2e0df604b581684dcf83f8520b7da84c
Diffstat (limited to 'asn1/ranap/RANAP-PDU-Contents.asn')
-rw-r--r-- | asn1/ranap/RANAP-PDU-Contents.asn | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/asn1/ranap/RANAP-PDU-Contents.asn b/asn1/ranap/RANAP-PDU-Contents.asn index 75aeaeb..199f6b1 100644 --- a/asn1/ranap/RANAP-PDU-Contents.asn +++ b/asn1/ranap/RANAP-PDU-Contents.asn @@ -780,7 +780,8 @@ CNMBMSLinkingInformation-ExtIEs RANAP-PROTOCOL-EXTENSION ::= { ... } -JoinedMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +JoinedMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF JoinedMBMSBearerService-IEs-Value +JoinedMBMSBearerService-IEs-Value ::= SEQUENCE { tMGI TMGI, mBMS-PTP-RAB-ID MBMS-PTP-RAB-ID, @@ -2301,7 +2302,8 @@ RAB-ReleasedItem-ExtIEs RANAP-PROTOCOL-EXTENSION ::= { ... } -DataVolumeList ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF +DataVolumeList ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF DataVolumeList-Value +DataVolumeList-Value ::= SEQUENCE { dl-UnsuccessfullyTransmittedDataVolume UnsuccessfullyTransmittedDataVolume, dataVolumeReference DataVolumeReference OPTIONAL, @@ -3210,7 +3212,8 @@ MBMSUELinkingRequestIEs RANAP-PROTOCOL-IES ::= { ... } -LeftMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +LeftMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF LeftMBMSBearerService-IEs-Value +LeftMBMSBearerService-IEs-Value ::= SEQUENCE { tMGI TMGI, iE-Extensions ProtocolExtensionContainer { {LeftMBMSBearerService-ExtIEs} } OPTIONAL, @@ -3243,7 +3246,8 @@ MBMSUELinkingResponseIEs RANAP-PROTOCOL-IES ::= { ... } -UnsuccessfulLinking-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +UnsuccessfulLinking-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF UnsuccessfulLinking-IEs-Value +UnsuccessfulLinking-IEs-Value ::= SEQUENCE { tMGI TMGI, cause Cause, |