Structure definition
struct list
{
struct list **next, **prev;
}
core.c
//Global struct
struct list *threads = {&threads, &threads}; //Warnings here:
// warning: initialization from incompatible pointer type
// warning: excess elements in scalar initializer
// warning: (near initialization for 'threads')
PS: I don't have a main function in this file. And this has to be global.