Compiler Warning (level 4) C4100

您所在的位置:网站首页 8406719-c4100 Compiler Warning (level 4) C4100

Compiler Warning (level 4) C4100

2023-04-05 08:42| 来源: 网络整理| 查看: 265

Compiler Warning (level 4) C4100 Article 08/03/2021 2 minutes to read

'identifier' : unreferenced formal parameter

The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.

C4100 can also be issued when code calls a destructor on a otherwise unreferenced parameter of primitive type. This is a limitation of the Microsoft C++ compiler.

The following sample generates C4100:

// C4100.cpp // compile with: /W4 void func(int i) { // C4100, delete the unreferenced parameter to //resolve the warning // i; // or, add a reference like this } int main() { func(1); }


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3