C3803: Illegal Segment Attribute

[WARNING]

Description

A Segment attribute was recognized, but this attribute is not applicable to this segment. Code segments may only be FAR, NEAR and SHORT. The DIRECT attribute is allowed for data segments only. The actual available segment attributes and their semantic depends on the target processor.

Example
  #pragma CODE_SEG DIRECT MyFarSegment

  
Tips

Correct the attribute. Do not use segment attribute specifiers as segment names. Note that you can use the 'safe' qualifiers as well, e.g. __FAR_SEG.