Merge #10739: test: Move variable `state` down where it is used
commit1fc783fc08bc078239537535f174ab8a489772c0
authorMarcoFalke <falke.marco@gmail.com>
Sun, 16 Jul 2017 20:47:21 +0000 (16 22:47 +0200)
committerMarcoFalke <falke.marco@gmail.com>
Sun, 16 Jul 2017 20:47:33 +0000 (16 22:47 +0200)
treebc3bd9109763af85b906c087846e4f82ea2a48b6
parent565494619d809655fa94d274bb2202d25553e485
parent5618b7d1ad3f2a258d46cf67b732ffddd3f34cb6
Merge #10739: test: Move variable `state` down where it is used

5618b7d Do not shadow upper local variable `state`. (Pavel Janík)

Pull request description:

  Tests added in #10192 emit few shadowing warnings:

  ```
  test/txvalidationcache_tests.cpp:268:26: warning: declaration shadows a local variable [-Wshadow]
  test/txvalidationcache_tests.cpp:296:26: warning: declaration shadows a local variable [-Wshadow]
  test/txvalidationcache_tests.cpp:357:26: warning: declaration shadows a local variable [-Wshadow]
  ```

  Remove shadowing declarations and reuse the upper local declaration as in other already present test cases.

Tree-SHA512: 1e3c52cf963f8f33e729900c8ecdcd5cc6fe28caa441ba53c4636df9cc3d1a351ca231966d36384589f1340ae8ddd447424c2ee3e8527d334d0412f0d1a10c8f