-Wmsg8x3: Cut filenames in Microsoft format to 8.3

Group

Messages

Scope

Assembly Unit

Syntax
  -Wmsg8x3
  
  
Default

None

Description

Some editors (e.g., early versions of WinEdit) are expecting the filename in the Microsoft message format in a strict 8.3 format. That means the filename can have at most 8 characters with not more than a 3-character extension. Using a newer Windows OS, longer file names are possible. With this option the filename in the Microsoft message is truncated to the 8.3 format.

Example
  x:\mysourcefile.c(3): INFORMATION C2901: Unrolling loop
  
  

With the -Wmsg8x3 option set, the above message will be

  x:\mysource.c(3): INFORMATION C2901: Unrolling loop
  
  
See also