Skip to content
Commit dd588aa6 authored by Pierre Gondois's avatar Pierre Gondois Committed by Leif Lindholm
Browse files

Silicon/Marvell/Drivers: Casts to avoid void* pointer arithmetic



By default, gcc allows void* pointer arithmetic.
This is a GCC extension.
However, the C reference manual states that void*
pointer "cannot be operands of addition or subtraction
operators". Cf s5.3.1 "Generic Pointers".

This patch adds casts to avoid doing void* pointer arithmetic.

Signed-off-by: Pierre Gondois's avatarPierre Gondois <pierre.gondois@arm.com>
Reviewed-by: default avatarLeif Lindholm <leif@nuviainc.com>
parent 02cf0dcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment