Mailing List Archive


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

Re: [tlug] Giving a program priority briefly



>> *: 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.

> Python and Ruby hackers, how do you do this?

In PHP, put this at the top of the script (or in php.ini, etc.):
  error_reporting(E_ALL);

Darren



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links