Helper's chksum.h API had a void* to uint16_t* casting, which is not
legal in C++ (Clang and GCC).

Signed-off-by: Oriol Arcas <[email protected]>
---
 helper/include/odp/helper/chksum.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helper/include/odp/helper/chksum.h 
b/helper/include/odp/helper/chksum.h
index 07d0be3..520e927 100644
--- a/helper/include/odp/helper/chksum.h
+++ b/helper/include/odp/helper/chksum.h
@@ -44,7 +44,7 @@ typedef enum {
  */
 static inline odp_u16sum_t odph_chksum(void *buffer, int len)
 {
-       uint16_t *buf = buffer;
+       uint16_t *buf = (uint16_t *)buffer;
        uint32_t sum = 0;
        uint16_t result;
 
-- 
1.9.1

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to