You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First Error:
An unsigned variable is an unsigned int.
There is uninitialized bytes returned that are problably never used.
How would a fix look like?
Turn unsigned i into an unsigned char[3] and cast it to unsigned?
I started to test around with cppcheck[1] and it detects quite some errors like these:
This depends on a compiler to initialize variables to
0
e.g.This can lead to bugs depending on the float representation of the architecture in memory e.g.
Should these issues be fixed?
[1] Download: http://cppcheck.sourceforge.net/
The text was updated successfully, but these errors were encountered: