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.

The following example generates C4160:

// 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() {
}

Community Additions

ADD
Show:
© 2015 Microsoft