Hello,
I have a warning I don't understand with attached cpp:
new4.cpp:10:23: style: Variable 'icoin[nb]' is assigned a value that is never used. [unreadVariable] icoin[nb] = i;
I've debugged it and values of icoin from index 0 to 6 are indeed used...
Thanks for helping me sorting this out.
PS: don't try to make sense of this code ;)
command line to reproduce the problem: cppcheck new4.cpp --enable=all
Thanks for reporting, tiket is here: https://trac.cppcheck.net/ticket/11125
Log in to post a comment.
Hello,
I have a warning I don't understand with attached cpp:
new4.cpp:10:23: style: Variable 'icoin[nb]' is assigned a value that is never used. [unreadVariable]
icoin[nb] = i;
I've debugged it and values of icoin from index 0 to 6 are indeed used...
Thanks for helping me sorting this out.
PS: don't try to make sense of this code ;)
command line to reproduce the problem: cppcheck new4.cpp --enable=all
Thanks for reporting, tiket is here: https://trac.cppcheck.net/ticket/11125