On Thu, 3 May 2007, Adrian Bunk wrote: > > That's only addressing part of the issue. What about automatic or static > > external variables that are declared but may go unreferenced depending on > > This is only about static code. For non-static code it would be > impossible for gcc to issue warnings. > static external variables are certainly still static code and gcc issues the proper warnings if I do: static struct bootnode nodes[MAX_NUMNODES]; and I never reference nodes. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Adrian Bunk <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- References:
- [patch 01/10] compiler: define __attribute_unused__
- From: David Rientjes <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Rusty Russell <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: David Rientjes <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Rusty Russell <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: David Rientjes <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Rusty Russell <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: David Rientjes <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Adrian Bunk <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Adrian Bunk <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: David Rientjes <[email protected]>
- Re: [patch 01/10] compiler: define __attribute_unused__
- From: Adrian Bunk <[email protected]>
- [patch 01/10] compiler: define __attribute_unused__
- Prev by Date: [git patches] ocfs2 fixes
- Next by Date: Re: kernel panic with 2.6.21-gdc87c398
- Previous by thread: Re: [patch 01/10] compiler: define __attribute_unused__
- Next by thread: Re: [patch 01/10] compiler: define __attribute_unused__
- Index(es):