gcc 4.0.0 warning: dereferencing type-punned pointer will break strict-aliasing rules
Just need this clarification. In my program i have a user defined function with prototype myfunc(void** ptr)
and consider for example i call it like this
char * name;
I get this compilation warning wherever i do this
warning: dereferencing type-punned pointer will break strict-aliasing rules
I just want to know why , because the same program run on gcc 2.96 does not produce the same warning , when i run it in gcc 4.0.0. i get this warning , i also need to find a way to fix this issue. Any help in this regard would be great.