C4200: Other segment than in previous declaration

[WARNING]

Description

A object (variable or function) was declared with inconsistent segments.

Example
  #pragma DATA_SEG A

  
  extern int i;

  
  #pragma DATA_SEG B

  
  int i;

  
Tips

Change the segment pragmas in a way that all declarations and the definition of one object are in the same segment. Otherwise wrong optimizations could happen.