summary refs log tree commit diff stats
path: root/python/scripts
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2023-09-29 10:31:43 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-10-06 10:56:54 +0200
commit668a63140a42cd61c79a956a6222ce25cc893f69 (patch)
tree5c6abaf07c94e7649098cdc49b077ea21eff56bf /python/scripts
parent78bcc3cc7b16d9ca118e1f860751930cbb64e81c (diff)
downloadfocaccia-qemu-668a63140a42cd61c79a956a6222ce25cc893f69.tar.gz
focaccia-qemu-668a63140a42cd61c79a956a6222ce25cc893f69.zip
target/ppc: Rename variables to avoid local variable shadowing in VUPKPX
and fix such warnings :

  ../target/ppc/int_helper.c: In function ‘helper_vupklpx’:
  ../target/ppc/int_helper.c:2025:21: warning: declaration of ‘r’ shadows a parameter [-Wshadow=local]
   2025 |             uint8_t r = (e >> 10) & 0x1f;                               \
        |                     ^
  ../target/ppc/int_helper.c:2033:1: note: in expansion of macro ‘VUPKPX’
   2033 | VUPKPX(lpx, UPKLO)
        | ^~~~~~
  ../target/ppc/int_helper.c:2017:41: note: shadowed declaration is here
   2017 |     void helper_vupk##suffix(ppc_avr_t *r, ppc_avr_t *b)                \
        |                              ~~~~~~~~~~~^
  ../target/ppc/int_helper.c:2033:1: note: in expansion of macro ‘VUPKPX’
   2033 | VUPKPX(lpx, UPKLO)
        | ^~~~~~

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230929083143.234553-1-clg@kaod.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'python/scripts')
0 files changed, 0 insertions, 0 deletions