Harald Welte has submitted this change and it was merged.

Change subject: Fix compiler warning
......................................................................


Fix compiler warning

In file included from asn1helpers.c:14:0:
../include/asn1c/asn1helpers.h: In function ‘OCTET_STRING_noalloc’:
../include/asn1c/asn1helpers.h:26:9: warning: assignment discards ‘const’ 
qualifier from pointer target type [-Wdiscarded-qualifiers]
  s->buf = str;
         ^

Change-Id: Ie2fefe710090de779137c36b98239ef4a097b6dd
---
M include/asn1c/asn1helpers.h
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/asn1c/asn1helpers.h b/include/asn1c/asn1helpers.h
index d6b5e18..2cfc000 100644
--- a/include/asn1c/asn1helpers.h
+++ b/include/asn1c/asn1helpers.h
@@ -23,6 +23,6 @@
 
 static inline void OCTET_STRING_noalloc(OCTET_STRING_t *s, const uint8_t *str, 
int size)
 {
-       s->buf = str;
+       s->buf = (uint8_t *) str;
        s->size = size;
 }

-- 
To view, visit https://gerrit.osmocom.org/4461
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie2fefe710090de779137c36b98239ef4a097b6dd
Gerrit-PatchSet: 1
Gerrit-Project: libasn1c
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to