Witam,
Chcę zrobić strukturę w której będzie wskaźnik do funkcji w której będzie argument o typie wskaźnika do tej właśnie struktury:
Przykładowo taki prosty kodzik:
#include <stdio.h>
#include <stdlib.h>
typedef void (*EVENT)(struct tmp_t * tmp);
struct tmp_t{
EVENT event;
};
int main(){
return 0;
}
$ gcc -o main main.c && ./main
main.c:4:30: warning: 'struct tmp_t' declared inside parameter list
main.c:4:30: warning: its scope is only this definition or declaration, which is probably not what you want
Jak dogadać się z kompilatorem żeby nie wywalał warningów?