Compiler Warning (level 4) C4100 |
您所在的位置:网站首页 › 8406719-c4100 › Compiler Warning (level 4) C4100 |
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 |