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: Fri, 15 Jun 2007 20:13:29 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@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 6/12/07, Darren Cook <darren@example.com> wrote:>> *: Even something as trivial as renaming a parameter can cause very >> subtle bugs if the parameter name was also the name of a variable in one >> of the base classes. Tip of the day: use -Wshadow in g++. > > 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
Scroll down to -Wall; everything below that is not included.
For a program I wrote with only 3000 lines, -Wall gave ZERO warning but when I checked it with lint[1], I got more than 3200 warnings :D.
lint is a really good tool for UT and code review FYI
[1] http://www.google.co.jp/search?hl=ja&q=lint&lr=
# and Jlint for Java programmers
-- Best Regards, Nguyen Hung Vu vuhung16plus{remove}@example.com An inquisitive look at Harajuku http://www.flickr.com/photos/vuhung/sets/72157600109218238/
- 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] RIGHT SCALE
- Next by Date: [tlug] [OT?]A Hard Drive Question
- 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