NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Warning (level 4) C4221

nonstandard extension used : 'identifier' : cannot be initialized using address of automatic variable

With the default Microsoft extensions (/Ze), you can initialize an aggregate type (array, struct, or union) with the address of a local (automatic) variable.

Example

struct S
{
   int *i;
};
void func()
{
   int j;
   struct S s1 = { &j };  // warning
}

Such initializations are illegal under ANSI compatibility (/Za).