In some occasions, we use a variable like j to be redefined multiple times inside a function while it is also used inside loops. This gives warnings like:
smoother.cpp", line 1652: warning: reference is to variable "j" (declared at line 1033) -- under old for-init scoping rules it would have been variable "j" (declared at line 1335) [hidden_by_old_for_init]
col = (j + 1) * ntheta_int + i;
which we should avoid by not using the same variable in two occasions redefined again and again.
In some occasions, we use a variable like
j
to be redefined multiple times inside a function while it is also used inside loops. This gives warnings like:which we should avoid by not using the same variable in two occasions redefined again and again.