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);
and comment it. By adding 2 //
//int product(int x, int y);
The warning would go.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.