I tried to get an answer for this question in the Q&A section but had no luck. Hopefully somebody has a solution here.
I am trying to allocate memory for a linked list I need. Therefore I use calloc which should give me a pointer of no type. This is why I typecast it to (int *):
Code: Select all
#include <stdlib.h>
int main(void){
unsafe {
int * unsafe pdata = (int * unsafe)calloc(1, sizeof(int));
}
return 0;
}
####
Debug error:
warning: C36258: pointer cast to type of larger alignment