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 1. Inconsistent use of class and struct
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."

This pragma corresponds to the Inconsistent `class' / `struct' Usage setting in the CodeWarrior IDE's Properties > C/C++ Build > Settings > Tool Settings > PowerPC Compiler > Warniings C/C++ Warnings settings panel. By default, this pragma is disabled.

Related information
access_errors
always_inline
arg_dep_lookup
ARM_conform
ARM_scoping
array_new_delete
auto_inline
bool
cplusplus
cpp1x
cpp_extensions
debuginline
def_inherited
defer_codegen
defer_defarg_parsing
direct_destruction
direct_to_som
dont_inline
ecplusplus
exceptions
inline_bottom_up
inline_bottom_up_once
inline_depth
inline_max_auto_size
inline_max_size
inline_max_total_size
internal
iso_templates
new_mangler
no_conststringconv
no_static_dtors
nosyminline
old_friend_lookup
old_pods
old_vtable
opt_classresults
parse_func_templ
parse_mfunc_templ
RTTI
suppress_init_code
template_depth
thread_safe_init
warn_hidevirtual
warn_no_explicit_virtual
warn_no_typename
warn_notinlined
wchar_type