aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-11-11 15:44:52 +0100
committerOliver Smith <osmith@sysmocom.de>2022-11-14 09:52:14 +0100
commit48c038d3992a41ac96e43feae27be8a454506634 (patch)
tree1d3693842da85de5ec448bf80978f8bd1b56b40c /include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h
parent0c04a7e03f2c757cc0d5eebeb5ea501835712cc3 (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 'include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h')
-rw-r--r--include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h b/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h
new file mode 100644
index 0000000..69e9be8
--- /dev/null
+++ b/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h
@@ -0,0 +1,46 @@
+/*
+ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
+ * From ASN.1 module "RANAP-PDU"
+ * found in "../../asn1/ranap/RANAP-PDU.asn"
+ * `asn1c -fcompound-names -R`
+ */
+
+#ifndef _RANAP_JoinedMBMSBearerService_IEs_Value_H_
+#define _RANAP_JoinedMBMSBearerService_IEs_Value_H_
+
+
+#include <asn_application.h>
+
+/* Including external dependencies */
+#include <osmocom/ranap/RANAP_TMGI.h>
+#include <osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h>
+#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h>
+#include <constr_SEQUENCE.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* RANAP_JoinedMBMSBearerService-IEs-Value */
+typedef struct RANAP_JoinedMBMSBearerService_IEs_Value {
+ RANAP_TMGI_t tMGI;
+ RANAP_MBMS_PTP_RAB_ID_t mBMS_PTP_RAB_ID;
+ RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */;
+ /*
+ * This type is extensible,
+ * possible extensions are below.
+ */
+
+ /* Context for parsing across buffer boundaries */
+ asn_struct_ctx_t _asn_ctx;
+} RANAP_JoinedMBMSBearerService_IEs_Value_t;
+
+/* Implementation */
+extern asn_TYPE_descriptor_t asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RANAP_JoinedMBMSBearerService_IEs_Value_H_ */
+#include <asn_internal.h>