C1037: Illegal initialization for extern variable in block scope

[ERROR]

Description

A variable with extern storage class cannot be initialized in a function.

Example
  void f(void) {

  
    extern int i= 1;

  
  }

  
Tips

Initialize the variable, where it is defined.