[12/15] sim: ppc: fix -Wshadow=local warnings

Message ID 20231222012355.7504-12-vapier@gentoo.org
State New
Headers
Series [01/15] sim: aarch64: fix -Wshadow=local warnings |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed

Commit Message

Mike Frysinger Dec. 22, 2023, 1:23 a.m. UTC
  Use a local name in the macro to avoid shadowing wherever it's used.
---
 sim/ppc/debug.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/sim/ppc/debug.h b/sim/ppc/debug.h
index 08ea5795fd89..28e42c7bb753 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; \
     } \