Compiler Error C2489

'identifier' : initialized auto or register variable not allowed at function scope in 'naked' function

The following is an example of this error:

__declspec( naked ) int func() 
{
   int i = 1;            // error
   register int j = 1;   // error
}