RAD Studio |  |

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:

Copy Code

    #pragma pack( push )

Copy Code

    #pragma pack( push )

Copy Code

    #pragma pack( pop )

Copy Code

    #pragma pack( pop )

Copy Code

    #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!