In article <82309@palm-dev-forum>, [EMAIL PROTECTED] says...
>
> The knowledge base is still down...
>
> Can anyone explain a possible reason why I would be receiving the following message
>during compile:
>
> Warning: global variable hex$293 is accessed using A5 register...
You've created a new project using the New Application Wizard in CW for
Palm OS V8. New projects created using this wizard have a pair of
pragmas in the code
#pragma warn_a5_access on
#pragma warn_a5_access reset
This puts a guard around code that shouldn't access global variables
because it could be executed for any launch code. If the compiler tries
to generate a global reference, for example to a variable called "hex",
the compiler will warn you so you don't get bitten by this by mistake.
If you don't want this warning, you can remove the pragmas, but it might
be better to move the code out of this path and into other functions
that will only be executed on a global launch.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/