Почему я получаю предупреждение каждый раз, когда использую malloc?
Если я используюmalloc
в моем коде:
int *x = malloc(sizeof(int));
Я получаю это предупреждение отgcc
:
new.c:7: warning: implicit declaration of function ‘malloc’
new.c:7: warning: incompatible implicit declaration of built-in function ‘malloc’