Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Giving a program priority briefly



On 12/06/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}.

Seriously, programming without turning *all* of your compiler's
warnings on is like just using one pedal on a push-bike; you can get
places, just not very efficiently.

Sometimes the compiler gets confused, but most of the time you are the
one who is confused.

* Perl:

use strict;
use warnings;

or command-line option: -w

* gcc / g++

Command-line option: -Wall


Python and Ruby hackers, how do you do this?

-Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links