warn_padding

Controls the issuing of warnings for data structure padding.

Syntax

#pragma warn_padding on | off | reset

Targets
All platforms.
Remarks

If you enable this pragma, the compiler warns about any bytes that were implicitly added after an ANSI C struct member to improve memory alignment. Refer to the appropriate Targeting manual for more information on how the compiler pads data structures for a particular processor or operating system. For more information about this warning, see “Realigned Data Structures”.

This pragma corresponds to the Pad Bytes Added setting . To check this setting, use __option (warn_padding), described in Checking Settings. The default setting is off.