Aviso: atribuição de tipo de ponteiro incompatível
Eu recebo muitos avisos de 'atribuição de tipo de ponteiro incompatível', e não tenho a menor idéia do porquê.
myPageFrame pageFrames[numOfFrames];
myPage pages[numOfPages];
//in a for loop
pageFrames[i].thePage = (myState == HOT ? (&pages[i]) : NULL); // one of the offenders
Eu recebo o aviso toda vez que tento fazer alguma coisa parapageFrames[i].thePage
.
As estruturas em questão são:
//algo_structs.h
typedef struct{
int pageNum;
} myPage;
typedef struct myPage{
struct myPage* thePage;
int loaded;
int lastRef;
} myPageFrame;