C1069: Wrong use of far/near/rom/uni/paged in local scope

[ERROR]

Description

The far/near/rom/uni/paged keyword has no effect in the local declaration of the given identifier. far may be used to indicate a special addressing mode for a global variable only. Note that such additional keywords are not ANSI compliant and not supported on all targets.

Example
  far int i;  // legal on some targets

  
  void foo(void) {

  
    far int j;  // error message C1069

  
  }

  
Tips

Remove the far/near/rom/uni/paged qualifier, or declare the object in the global scope.