diff options
author | 2023-09-22 18:37:42 +0200 | |
---|---|---|
committer | 2023-09-25 07:54:35 +0200 | |
commit | 926bef1d82bb9eb7a752aa128d9e70b808906243 (patch) | |
tree | 47313cdd38b55e4263f03fd5279ac2ba7a28daca /scripts/qapi/source.py | |
parent | tests/qtest/netdev-socket: Raise connection timeout to 120 seconds (diff) | |
download | qemu-926bef1d82bb9eb7a752aa128d9e70b808906243.tar.xz qemu-926bef1d82bb9eb7a752aa128d9e70b808906243.zip |
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>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions