From: Mike Frysinger Date: Fri, 22 Dec 2023 01:13:19 +0000 (-0500) Subject: sim: ppc: fix -Wshadow=local warnings X-Git-Tag: upstream/2.42~401 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cc45e23842a4a4b7561ffe841a572969b2cc10a;p=platform%2Fupstream%2Fbinutils.git sim: ppc: fix -Wshadow=local warnings Use a local name in the macro to avoid shadowing wherever it's used. --- 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; \ } \