Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 822 Bytes

compiler-warning-level-1-c4160.md

File metadata and controls

32 lines (24 loc) · 822 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4160
Compiler Warning (level 1) C4160
08/27/2018
C4160
C4160
a9610cb7-cac4-4a74-8b4e-049030ebb92b

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