编译器警告(等级 1)C4160
#pragma (pop,...):未找到先前入栈的标识符“identifier”
注解
源代码中的 pragma 语句试图弹出尚未入栈的标识符。 要避免此警告,请确保要弹出的标识符已正确入栈。
示例
下面的示例生成 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() {
}