This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WARNING L13: RECURSIVE CALL TO SEGMENT

I am receiving WARNING "L13: RECURSIVE CALL TO SEGMENT" when I try to access a CROMDATA array from the same file.

That means CROMDATA variable and its usage are in the same .c file.

Can anybody please help, How can I remove this warning?

I have read warning description, but could not get any clue.

Thanks in advance

~Ronie

Parents Reply Children
  • Code:
    CROMDATA unsigned long bgTypeArray[] = { 0xFFD50000, 0xFF00D500, 0xFF0000FF, 0xFFFFFF00, 0xFFff04FF, 0xFF00FFFF, 0xFF0000D7, 0xFFFF8000, 0xFFFBFBFB, 0xFF000000, 0xFF909090, 0xFFC0C0C0, 0xFF636363,
    };

    unsigned long bgtype;

    void ModifybgType(BYTE type)
    { bgtype = bgTypeArray[type];
    }

    This is how I am accessing the array in a single file.