RAD Studio
ContentsIndex
PreviousUpNext
W8083: Pragma pack pop with no matching pack push (C++)

Each #pragma pack(pop) should have a matching preceding #pragma pack(push) in the same translation unit. Pairs of 'push' and 'pop' can be nested.  

For example:

#pragma pack( push )

 

#pragma pack( push )

 

#pragma pack( pop )

 

#pragma pack( pop )

 

#pragma pack( pop )   // This causes an error
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!