Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4160

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

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. For example:

// 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() {
© 2014 Microsoft