【发布时间】:2019-11-27 06:53:58
【问题描述】:
void func(char * param)
{
#ifdef _XYZ_
.....somecode here using param
#endif
.....lots of code here not using param
}
编译时出错,我不想在代码中发出警告。
【问题讨论】:
-
你有没有试过搜索
unreferenced local variable警告是什么? -
我认为这对我没有帮助。
标签: c++ compiler-warnings