The problem occur when the the variable is defined in a page0 ram section in the same file where it is used in a code (rom) section.
And yes, I know the reason is that there is a page0 type mismatch for this variable. But the same variable is used in another file without problems (but then XREFB'd). This should indicate that the variable is registered as a page0 type. I used 'SHORT' for the ram section, and I wonder if this could be the reason?
I don't have time for testing the theories now, maybe next week.
I've solved my current problem just by moving the ram sections to a separate file, and XREFB the variables in all the files I use them.
It looks like there is a bug in CW regarding this, since the warning appeared after I increased the number of variables I used in the file. As I said everything was ok until I added a new variable, and then I got a warning on both variables.
TOK