[WARNING]
If the option -ANSI is disabled, the nonstandard extension issues only a warning, not an error.
extern int i;
static int i; // warning
Remove either the extern specifier of the first declaration, or the static specifier of the second occurrence of the identifier.