Fix Wshadow warnings
As always, please add your wishes for alternative renaming of variable names.
Merge request reports
Activity
Added 7 commits:
- 50ae534e...7fb6aa4d - 6 commits from branch
master
- d6a68c60 - Fix Wshadow warnings
- 50ae534e...7fb6aa4d - 6 commits from branch
423 423 */ 424 424 void setVerbosity(int v) 425 425 { 426 verbose = v; 426 verbose_ = v; 427 427 // set the verbosity level in UMFPack 428 if (verbose == 0) 428 if (verbose_ == 0) 429 429 UMF_Control[UMFPACK_PRL] = 1; 430 if (verbose == 1) 430 if (verbose_ == 1) 431 431 UMF_Control[UMFPACK_PRL] = 2; 432 if (verbose == 2) 432 if (verbose_ == 2) 433 433 UMF_Control[UMFPACK_PRL] = 4; 434 434 } Added 4 commits:
- d6a68c60...112fb39f - 3 commits from branch
master
- e777a8d0 - Fix Wshadow warnings
- d6a68c60...112fb39f - 3 commits from branch
Yet another try. I just reused the iterator solver to avoid adding complexity.
I think reusing iterators is bad in general: it leaves it unclear if the previous value has any meaning. The code is easier to understand if variables have only a small scope and are not reused.
So I would either use different names for both iterators or make their scope smaller to avoid the shadowing.
mentioned in commit 6b890e74
@pipping FYI, One can make gitlab diffs ignore whitespace by adding ?w=1 to the URL: http://doc.gitlab.com/ce/workflow/merge_requests.html#ignore-whitespace-changes-in-merge-request-diff-view
mentioned in commit 922bd812
Please register or sign in to reply