Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 14 Oct 2002 19:54:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 14 Oct 2002 19:54:50 -0400 Received: from 2-136.ctame701-1.telepar.net.br ([200.193.160.136]:3970 "EHLO 2-136.ctame701-1.telepar.net.br") by vger.kernel.org with ESMTP id ; Mon, 14 Oct 2002 19:54:48 -0400 Date: Mon, 14 Oct 2002 22:00:26 -0200 (BRST) From: Rik van Riel X-X-Sender: riel@imladris.surriel.com To: Chris Wedgwood cc: Daniele Lugli , Subject: Re: unhappy with current.h In-Reply-To: <20021014202404.GA10777@tapu.f00f.org> Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 873 Lines: 24 On Mon, 14 Oct 2002, Chris Wedgwood wrote: > On Mon, Oct 14, 2002 at 09:46:08PM +0200, Daniele Lugli wrote: > > > I recently wrote a kernel module which gave me some mysterious > > problems. After too many days spent in blood, sweat and tears, I found the cause: > > > *** one of my data structures has a field named 'current'. *** > > gcc -Wshadow Would it be a good idea to add -Wshadow to the kernel compile options by default ? Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ Current spamtrap: october@surriel.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/