编译器警告(等级 4)C4514

“函数”:已删除未引用的内联函数

优化器删除了未调用的内联函数。

默认情况下,此警告处于关闭状态。 请参阅 默认情况下处于关闭状态的编译器警告 了解详细信息。

下面的示例生成 C4514:

// C4514.cpp
// compile with: /W4
#pragma warning(default : 4514)
class A
{
   public:
      void func()   // C4514, remove the function to resolve
      {
      }
};

int main()
{
}