diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 20:13:19 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-22 23:29:19 -0500 |
commit | 5cc45e23842a4a4b7561ffe841a572969b2cc10a (patch) | |
tree | 4e42158ea5029e444b85eec0013403345ad9aab9 /sim/ppc | |
parent | d31fd3f617cfe399eb7e95863c9b1dc1e7f3c88f (diff) | |
download | gdb-5cc45e23842a4a4b7561ffe841a572969b2cc10a.zip gdb-5cc45e23842a4a4b7561ffe841a572969b2cc10a.tar.gz gdb-5cc45e23842a4a4b7561ffe841a572969b2cc10a.tar.bz2 |
sim: ppc: fix -Wshadow=local warnings
Use a local name in the macro to avoid shadowing wherever it's used.
Diffstat (limited to 'sim/ppc')
-rw-r--r-- | sim/ppc/debug.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/debug.h b/sim/ppc/debug.h index 08ea579..28e42c7 100644 --- a/sim/ppc/debug.h +++ b/sim/ppc/debug.h @@ -125,14 +125,14 @@ do { \ #define DITRACE(OBJECT, ARGS) \ do { \ if (WITH_TRACE) { \ - device *me = device_instance_device(instance); \ - int trace_device = device_trace(me); \ + device *_me = device_instance_device(instance); \ + int trace_device = device_trace(_me); \ if (ppc_trace[trace_devices] \ || ppc_trace[trace_##OBJECT##_device] \ || trace_device) { \ sim_io_printf_filtered("%s:%d:%s:%s%s ", \ filter_filename(__FILE__), __LINE__, #OBJECT, \ - trace_device ? device_path(me) : "", \ + trace_device ? device_path(_me) : "", \ trace_device ? ":" : ""); \ sim_io_printf_filtered ARGS; \ } \ |