Compiler Warning (level 1) C4204

nonstandard extension used : non-constant aggregate initializer

Microsoft C++ allows you to initialize aggregate types (arrays, structures, unions, and classes) with values that are not constants.

The following is an example of this error:

int func1();
struct S1{ int i; };
S1 struct1 = { func1() };  // warning

This extension can prevent your code from being portable to other compilers and will generate an error under the /Za command-line option.