[PATCH v2 01/23] examples/ethtool: resolve shadow variable warnings
fengchengwen
fengchengwen at huawei.com
Wed Apr 8 02:32:22 CEST 2026
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
On 4/7/2026 11:15 PM, Stephen Hemminger wrote:
> Fix shadow variable warning by renaming the function parameter
> from 'app_cfg' to 'ptr_cfg' to avoid shadowing the global variable.
>
> ../examples/ethtool/ethtool-app/main.c:89:44: warning: declaration of
> 'app_cfg' shadows a global declaration [-Wshadow]
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list