🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24758

[PATCH iproute2-next 10/10] Makefile: enable shadowed variable warnings

#24758
From: Stephen Hemminger
Date: Mon, 30 Nov 2026 18:47
24 lines
11667 bytes
Shadowed variables often lead to bugs and confusion so enable
that warning.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d3755305..5a854295 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ DEFINES += -D_GNU_SOURCE
 # Turn on transparent support for LFS
 DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 CCOPTS = -O2 -pipe
-WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes
+WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wshadow
 WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
 
 CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS)
-- 
2.53.0
Technical Details
Message-ID: <20261130184752.545119-11-stephen@networkplumber.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374408-linux-kernel-netdev=dewy.ru
References: <20261130184752.545119-1-stephen@networkplumber.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374408-linux-kernel-netdev=dewy.ru
From: stephen@networkplumber.org (Stephen Hemminger)
Newsgroups: linux.kernel.netdev
Subject: [PATCH iproute2-next 10/10] Makefile: enable shadowed variable warnings
Date: Mon, 30 Nov 2026 10:47:11 -0800
Organization: Usenet Network
Message-ID: <20261130184752.545119-11-stephen@networkplumber.org>
References: <20261130184752.545119-1-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1512844"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VmQa94zQADbMC1SKqAnQp6syTso= sha256:Oh3hDbDCH3L7Jj2V/XMQHdwocSkV3f/bqUqqamwJyYg=
	sha1:uJnUZ56QBwThMGSPfxAu0GDInfw= sha256:FOukn+sspbPomcwKpAmlRpabb+KhfkVB94usfpg5t60=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E2F09125FFC; Mon, 30 Nov 2026 22:11:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=networkplumber-org.20260707.gappssmtp.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id JXjDU99XoQDl;
	Mon, 30 Nov 2026 22:11:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374408-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=quarantine dis=none) header.from=networkplumber.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id CB973126003; Mon, 30 Nov 2026 22:11:45 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 14AE52A3DA; Mon, 30 Nov 2026 19:11:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796065885;
	b=ja27GxJYCLZBVooZRdpuC24FFE4/rZntr2YiD+EbjglytaIrc8vDTPpVvl87VIjAJkj3
	 WnhK/pPDvBe10KvOEnhFD8fOvUfONEJMMBzgLEMiovDiiuNC8e5JoT5G9X8vw97guNWpi
	 Exs+jii7WS4a+L0Wm0R5UESlzsOmHHN8OohPJEoJHMkEtK+R14ll/T23lHktdWli8j2t+
	 GQ/9FhnYxCzOfl6LUV9wCtyJB1OJX5vF4FAFaRvus/3Y2S4FXODhyGQcfppQwOw1ZSfvO
	 RkOVd+ajlASDGLEaqdGNHOnOmQwIP9lDhZYG7i21J6nrjnBLo47L5xiTBlROhcFjDFw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796065885;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=Wi1FUDENGvOgGksmWkAcqMfQft7ySSo6h4vBZROaUoM=;
	b=VpWsymJ203Sx52OYNvDmtDhaPZu5EDXbbCtKAlXjuKVqM7cZl3eFIgELHz+R66eNizIJ
	 jrMQye8ZWSOI4Dg/ACEEQyDshrddhqn1FPcrPy3b9Hzlz+SGqVB1t/eUj+2wAUlQJkd4i
	 U+UOMkg7o0ZM3BKtyuvz24mHsdDujwxKE8HlLH5KKBv6mfj6UqYD9SuIl/XO6ylcUwWQY
	 1rwD6w25a+0nsgbZ6mOQ9Bz6dkibdIHmLdy5c6tPfeKLmAulWjuY+X2i2vBeQamt+VxAU
	 unKhpyso9jpFrZsRmvVYJKqBLDfeLtl97mZmk/rXBq7Y0YgIhmzmPEHGK2bn6YX4++w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=qQJ4w87l;
	dmarc=pass header.from=networkplumber.org;
	spf=pass smtp.mailfrom=networkplumber.org;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 100AA606A332;
	Mon, 30 Nov 2026 19:11:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=qQJ4w87l
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.180
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796065884;
	b=lR0oLWP8IOfOLrv8HMLDesMnVJT994NNuGoSV4VfKu09hed65B6Ib/raY82iIUpyI6/S
	 UQ1Z/IrfXKe1gCVKyEP/k31I2skYfHspA5l01GRsBv74cvstnxYuYn9VP2FaOQaOJ+yCr
	 Yr0Ep2+5JgISvPqhrSQktPwOdkgnPf1iw4Se/1PRmR0Of5ZN7uOnxfTrG7RBykQrzIa3d
	 oDiKHdQlpA8Oe2M1gDx14HJ9esfz1wX92CZX/mCmGShUKHcdmuAZIozAr0zAwlvTfF4jr
	 SNVZVVku4eML95ahSCFUgrsUAVoWnfNxbw1ZzjsOmRupwBpRwyWvLqObHbVnCzExp/w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796065884;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=Wi1FUDENGvOgGksmWkAcqMfQft7ySSo6h4vBZROaUoM=;
	b=RKbJGNVJgUbil8wBHFpSNXlQrLne4hAwPV05v0oV5BT+NCvSypVwz7V6LMzQQVRDr2fl
	 8bKUasWHI4CVd1wyzcclZE2AaA929crATLhefOG11wcf9h4G48fpyAg6I/DBE2yiVPBLS
	 4+tDUCDC2gz/cltRo/ozBOsBN44vwMBSRalRUZFzaiC3EpUwXhFmIvzGa7U5I/viug2Ff
	 A+dcYbxH8hYJsmUgD0B688Hqmn0gtI/HM0T15oK6tBZC9m83+gPuDmb6xJXH2CHoal7Hv
	 B62ZPjhABQ9D63IcwMfuL2VjLCQFxiC60A/81Uh9SqwOHi7x0r+bbtlrLV9QT50dooA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=networkplumber.org;
	spf=pass smtp.mailfrom=networkplumber.org;
	dkim=pass header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=qQJ4w87l;
	arc=none smtp.remote-ip=209.85.215.180
X-Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66238606A685
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 19:11:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 66238606A685
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=networkplumber.org
X-Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-cdba1bbde0bso4219203a12.2
        for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 11:11:23 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796065883; x=1796670683; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=Wi1FUDENGvOgGksmWkAcqMfQft7ySSo6h4vBZROaUoM=;
        b=qQJ4w87l6LJ7G1wDSv8TDY2x2h0ASPcqAIHlAPQ4D4Dmg8KXnQTu0j6fy7z2HJ1hAb
         q1TXAap6I/xL+EKykAm68JZAZzIQMJcas9ddJ3hSwggjZ1YSMMG02o8CXO0yqN6vTaY0
         3M8Lq6upWiGagaAp56kbaeinlzkkoDkgijjqHxZK/XwFlvNFOJtNGO1fxHBxb+d8R5cQ
         nL4dQoOoKrOBx4Tz8uT6fHj+NrfuhgQGHoHAbicApzANZyGVrTBmyKptAZ5Gpv4M5eK2
         gqjG7ND6mZ6uGXgpUh3tqzGTltbcHaxIs95l9pi8uGihdTmKm7842hkqLkhql/6qaa5o
         FjCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796065883; x=1796670683;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=Wi1FUDENGvOgGksmWkAcqMfQft7ySSo6h4vBZROaUoM=;
        b=Tud4eUU0cL57KRAv2ifExPfpLeLAR9qpZN8hMH8zdtcjr/1QNRyNYw8dMTuFYxpNhT
         kZIwuXs7KStdfLBaqdkGNFZ7niUb5n/zh5CKSkS5tb2QoDij76ADkhkbaGGxUjhl22LA
         M/HpPs1Ijq1BD2sKLecjDIRW6vp8mwhVewxp4iz6N46harXHZxL8jcqIv8IhgpeSH3KU
         IBIZlvrl3bSUpoArH7yTV9NGLDUVZsA/O0DWuAnpieM7i9KPsur4PbZcTUzm4QTWwNgo
         SzPUe9HvbNlEm+9aLSvCaxkJLssdSPnSlelhRJX3qVMUbI8Np+E8vPgSCZSjukWvUrv5
         RpKw==
X-Gm-Message-State: APuU4Z+AtXhgBh22SaszD8hllvFgcU3+PHuEnhDAvV8QKAPG7XgP30sZ
	IXxnGVnsF0CidI0+MjMijcjzkIpju+yYeWJ+BVn7AttLfaP1/8iXiNjrVctVy7bLNg7RygBhYAK
	N1Jrz0Dc=
X-Gm-Gg: AZFdTZe4KoFJLmu8UfCKk2CSGfnbPqd8xeorPTOFbtJuuHbtWULzVFWPOORStt4RlFc
	JHwIvDpfT4UmzrmIDj2PhRtndSHRQegHspEZJI8X3xgnbr+D5rih3/yt7xJL/KGJLx677WNiG0k
	iL2zN9tcokdMoJ7xJWQ+bFfAJBqAKmH5Nr3n18YKxdPK0n04MQStS6GlCCRMGV4i0dOxO4cg1xO
	bBfO6pDU9MBjCZSODArNA7oJGbayj5B7gQnnaKTXU4Fm8j1fj/V+GbEQjSZIH5/STElcdk30FL1
	mABo6/bRegW+Xrvk0V2mH2rntw9GcHDQvzfBrAMvvB/nhgwXoS5Y+UZ8OCOAiB8e2gbcWUh3H50
	h5DVdmMttO5rwNnRzoIcTKsoe7wwtH75fCLWAMkPkuQqWCEpE258r4S/eXp7VdWCmMMCoGrc4JI
	cqXcsxDQZubo8sPYzls6pAoBjTswYgOQ9GirbgUC93vkFtJWgYHjPH/n0IPlofq4hmu697ioMhI
	l6ozLrlNMsFZawCSExQHKsSI+HXcAvKJviVGDSwBjx1NRnJOdG61RwVDBsQ1cNwps4I6nhpI4iU
	siyvBdekTeWMmLgZ7lGEAWH1wxXda1K92cHW+8t+mIdVCKMmQ2mNgCeabcxnh7xDOeJd4ah5A8E
	BQsZ4B+Ee+JmJSA==
X-Received: by 2002:a17:90b:3cc7:b0:3b1:8300:f48e with SMTP id 98e67ed59e1d1-3b41c9715a7mr36570833a91.49.1796065882730;
        Mon, 30 Nov 2026 11:11:22 -0800 (PST)
X-Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b40f4312dfsm55591195a91.3.2026.11.30.11.11.21
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 30 Nov 2026 11:11:21 -0800 (PST)
X-Cc: dsahern@kernel.org,
	Stephen Hemminger <stephen@networkplumber.org>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <20261130184752.545119-1-stephen@networkplumber.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list