/* file.c */
struct _Str {
....
int *amount_of_numbers;
....
};
int main(int argc, char *argv[]) {
Str *s;
...
call_funct (s);
...
}
static void call_funct(Str *s) {
int amount;
...
amount = s->amount_of_numbers;
...
}
Как правильно сделать приведение типов, чтобы компилятор не ругался?:
file.c:672:17: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
amount = s->amount_of_numbers;