But the compiler does not know that!
C is statically typed - the compiler knows only what type of information you have by looking at the type at compile time. If you cast it to void*, then the compiler has lost all track of the type.
UInt8* is not the same as Uint8**.Not exactly sure what you are saying here. Do you mean that the allocated memory essentially is a pointer to the first address of an array. If so how should I declare it.
The first is a pointer that points to one or more Uint8, and the second is a pointer that points to one or more Uint8*!
That is not good enough!Yes I know, but I said 'for now' meaning until I have found a solution.
This particular warning is more of an error, since it will 99% likely crash your program.
You must solve it right away before venturing further with the code.
Now, if you get that warning again, post the relevant code and we can point out what went wrong. A typical example that this warning says is this:
Code:int* p = 0; int x = p; // Warning: assignment makes integer from pointer without cast p = x; // Warning: assignment makes pointer from integer without cast


