Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Giving a program priority briefly
- Date: Tue, 12 Jun 2007 15:55:57 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] Giving a program priority briefly
- References: <466B5A87.7000002@dcook.org> <466CCBED.30902@dcook.org> <78d7dd350706110108l4acf4a83p70e1f1b55eb9a73e@mail.gmail.com> <87myz6fssg.fsf@uwakimon.sk.tsukuba.ac.jp> <Pine.NEB.4.64.0706120127200.22712@homeric.cynic.net> <466DD92C.70801@dcook.org> <87ir9uexx1.fsf@uwakimon.sk.tsukuba.ac.jp> <466E1F74.8060508@dcook.org> <d8fcc0800706112252n1ac368ddx48126279d2f527dc@mail.gmail.com> <466E3793.4090201@dcook.org>
On 12/06/07, Darren Cook <darren@example.com> wrote:
> Improved tip of the day, use -Wall in g[+c]{2}.
Or in other words, use "-Wall -Wshadow"
Despite the name, -Wall does not do "all" warnings, in fact only about half of the available ones: http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Warning-Options.html#Warning-Options
Interesting. It seems like -Wshadow at least used to be included in -Wall, because I *know* I've seen the warning before. But you are certainly right now:
: jglover@example.com; cat tmp/test-shadow.c int main (void) { int i = 0;
if (1) { int i = 1;
i++; }
i--;
return 0; } : jglover@example.com; gcc -Wall tmp/test-shadow.c : jglover@example.com; gcc -Wall -Wshadow tmp/test-shadow.c tmp/test-shadow.c: In function 'main': tmp/test-shadow.c:5: warning: declaration of 'i' shadows a previous local tmp/test-shadow.c:2: warning: shadowed declaration is here
Cheers, Josh
- References:
- [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Stephen J. Turnbull
- Re: [tlug] Giving a program priority briefly
- From: Curt Sampson
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Stephen J. Turnbull
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Josh Glover
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Correct particle to use
- Next by Date: Re: [tlug] Correct particle to use
- Previous by thread: Re: [tlug] Giving a program priority briefly
- Next by thread: Re: [tlug] Giving a program priority briefly
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links