|
From: Florian K. <fl...@ei...> - 2015-04-01 11:53:34
|
clang 3.6.0 says:
m_transtab.c:1548:42: warning: variable 'i' is uninitialized when used
here [-Wuninitialized]
for (EClassNo e = 0; e < ECLASS_N; i++) {
and it is right.. I suppose that was meant to read "e++" ?
clang's recommendation for a fix is quite funny;
m_transtab.c:1422:10: note: initialize the variable 'i' to silence this
warning
That recommendation is a manager's approach to fix compiler warnings :)
Come to think of it .. a really good warning here would have been: loop
does not iterate.
Florian
|