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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: