Edit

Share via


Compiler Warning (level 1) C4160

#pragma (pop,...) : did not find previously pushed identifier 'identifier'

Remarks

A pragma statement in your source code tries to pop an identifier that has not been pushed. To avoid this warning, be sure that the identifier being popped has been properly pushed.

Example

The following example generates C4160 and shows how to fix it:

// C4160.cpp
// compile with: /W1
#pragma pack(push)

#pragma pack(pop, id)   // C4160
// use identifier when pushing to resolve the warning
// #pragma pack(push, id)

int main() {
}