DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] examples/ptp_tap_relay_sw: forbid shadowed variables
@ 2026-06-18 14:25 Thomas Monjalon
  2026-06-18 20:05 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Monjalon @ 2026-06-18 14:25 UTC (permalink / raw)
  To: dev; +Cc: Rajesh Kumar

By removing the compilation flag no_shadow_cflag,
it becomes forbidden to shadow a variable.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 examples/ptp_tap_relay_sw/meson.build | 1 -
 1 file changed, 1 deletion(-)

diff --git a/examples/ptp_tap_relay_sw/meson.build b/examples/ptp_tap_relay_sw/meson.build
index e78b284ad8..f9fb6780f7 100644
--- a/examples/ptp_tap_relay_sw/meson.build
+++ b/examples/ptp_tap_relay_sw/meson.build
@@ -10,4 +10,3 @@ sources = files(
         'ptp_tap_relay_sw.c',
 )
 deps += ['net']
-cflags += no_shadow_cflag
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] examples/ptp_tap_relay_sw: forbid shadowed variables
  2026-06-18 14:25 [PATCH] examples/ptp_tap_relay_sw: forbid shadowed variables Thomas Monjalon
@ 2026-06-18 20:05 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2026-06-18 20:05 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Rajesh Kumar

On Thu, 18 Jun 2026 16:25:26 +0200
Thomas Monjalon <thomas@monjalon.net> wrote:

> By removing the compilation flag no_shadow_cflag,
> it becomes forbidden to shadow a variable.
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---

Thanks, example did not exist when the first pass was done.

Acked-by: Stephen Hemminger <stephen@networkplumber.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-18 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 14:25 [PATCH] examples/ptp_tap_relay_sw: forbid shadowed variables Thomas Monjalon
2026-06-18 20:05 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox