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 /include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h | |
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 'include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h')
-rw-r--r-- | include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h b/include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h new file mode 100644 index 0000000..2c62d54 --- /dev/null +++ b/include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_EUTRANFrequencies_Value_H_ +#define _RANAP_EUTRANFrequencies_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> +#include <osmocom/ranap/RANAP_MeasBand.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_EUTRANFrequencies-Value */ +typedef struct RANAP_EUTRANFrequencies_Value { + long earfcn; + RANAP_MeasBand_t *measBand /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_EUTRANFrequencies_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_EUTRANFrequencies_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_EUTRANFrequencies_Value_H_ */ +#include <asn_internal.h> |