tests/qtest/m48t59-test: Silence compiler warning with -Wshadow
commit926bef1d82bb9eb7a752aa128d9e70b808906243
authorThomas Huth <thuth@redhat.com>
Fri, 22 Sep 2023 16:37:42 +0000 (22 18:37 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 25 Sep 2023 05:54:35 +0000 (25 07:54 +0200)
tree47313cdd38b55e4263f03fd5279ac2ba7a28daca
parent0daaf2761f6d268ffaa2d01d450e202e127452b1
tests/qtest/m48t59-test: Silence compiler warning with -Wshadow

When compiling this file with -Wshadow=local , we get:

../tests/qtest/m48t59-test.c: In function ‘bcd_check_time’:
../tests/qtest/m48t59-test.c:195:17: warning: declaration of ‘s’
 shadows a previous local [-Wshadow=local]
  195 |         long t, s;
      |                 ^
../tests/qtest/m48t59-test.c:158:17: note: shadowed declaration is here
  158 |     QTestState *s = m48t59_qtest_start();
      |                 ^

Rename the QTestState variable to "qts" which is the common
naming for such a variable in other tests.

Reported-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20230922163742.149444-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/m48t59-test.c