warn_structclass

Controls the issuing of warning messages for the inconsistent use of the class and struct keywords.

Syntax
  #pragma warn_structclass on | off | reset   
Remarks

If you enable this pragma, the compiler issues a warning message if you use the class and struct keywords in the definition and declaration of the same identifier.

Listing: Inconsistent use of <codeph>class</codeph> and <codeph>struct</codeph>
class X; 
struct X { int a; }; // WARNING 

Use this warning when using static or dynamic libraries to link with object code produced by another C++ compiler that distinguishes between class and structure variables in its name " mangling."