osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/libasn1c/+/43432?usp=email )
Change subject: NativeEnumerated_encode_aper: make kf const
......................................................................
NativeEnumerated_encode_aper: make kf const
Fix this warning with GCC 15.2.0:
../../src_copy/libasn1c/src/NativeEnumerated.c: In function
'NativeEnumerated_encode_aper':
../../src_copy/libasn1c/src/NativeEnumerated.c:291:12: error: assignment
discards 'const' qualifier from pointer target type
[-Werror=discarded-qualifiers]
291 | kf = bsearch(&key, specs->value2enum, specs->map_count,
| ^
Change-Id: I569551dc165767e0b6077f4a911c94343fd02787
---
M src/NativeEnumerated.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libasn1c refs/changes/32/43432/1
diff --git a/src/NativeEnumerated.c b/src/NativeEnumerated.c
index 124e7f0..fcdc81c 100644
--- a/src/NativeEnumerated.c
+++ b/src/NativeEnumerated.c
@@ -271,7 +271,7 @@
asn_per_constraint_t *ct;
int inext = 0;
asn_INTEGER_enum_map_t key;
- asn_INTEGER_enum_map_t *kf;
+ const asn_INTEGER_enum_map_t *kf;
if(!sptr) _ASN_ENCODE_FAILED;
if(!specs) _ASN_ENCODE_FAILED;
--
To view, visit https://gerrit.osmocom.org/c/libasn1c/+/43432?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libasn1c
Gerrit-Branch: master
Gerrit-Change-Id: I569551dc165767e0b6077f4a911c94343fd02787
Gerrit-Change-Number: 43432
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>