C3606: Initializing object '<Object>'

[ DISABLE , INFORMATION, WARNING, ERROR]

Description

If global variables are initialized, such initialized objects have to be initialized during startup of the application. This message (which is disabled by default) reports every single global or static local initialization.

Example
  int i = 3;       // message C3606

  
  char *p = "abc"; // message C3606

  
  void foo(void) {

  
    int k = 3;         // no message!

  
    static int j = 3;  // message C3606

  
  }

  
Tips

Set this message to an error if you have to ensure that no additional global initialization is necessary for a copy down during startup of the application.