From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.180 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== 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== 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 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 ; Mon, 30 Nov 2026 19:11:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 66238606A685 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=networkplumber.org 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 Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-cdba1bbde0bso4219203a12.2 for ; Mon, 30 Nov 2026 11:11:23 -0800 (PST) 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) 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) From: Stephen Hemminger To: netdev@vger.kernel.org Cc: dsahern@kernel.org, Stephen Hemminger Subject: [PATCH iproute2-next 10/10] Makefile: enable shadowed variable warnings Date: Mon, 30 Nov 2026 10:47:11 -0800 Message-ID: <20261130184752.545119-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261130184752.545119-1-stephen@networkplumber.org> References: <20261130184752.545119-1-stephen@networkplumber.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Shadowed variables often lead to bugs and confusion so enable that warning. Signed-off-by: Stephen Hemminger --- 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