[英]How to fix - Unused declaration of function 'product'
I am trying to run a program which I copied from a source code.我正在尝试运行从源代码复制的程序。 It keeps showing the warning
它一直显示警告
"Unused declaration of function 'product'" for this line: int product(int x, int y);
And I don't know how to fix it.我不知道如何解决它。
There must be a prototype declaration of that function, that was not used, meaning, the function itself was not defined.必须有该函数的原型声明,未使用,这意味着未定义函数本身。
Just find the line int product(int x, int y);
只需找到行
int product(int x, int y);
and comment it.并评论它。 By adding 2
//
通过添加 2
//
//int product(int x, int y);
The warning would go.警告会消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.