Jeffrey Walton <noloader@xxxxxxxxx> writes: > On Thu, Oct 21, 2010 at 4:01 PM, John Boncek <jboncek@xxxxxxxxxx> wrote: >> Daniel Walter-2 wrote: >>> >>> [SNIP] >> >> Compile with -fdiagnostics-show-option. This will show with each warning >> what option controls generation of that warning. > > Quite useful. Perhaps -fdiagnostics-show-option could get its own > heading at http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html. By > not fully reading "-Werror=" subsection, I missed it (I don't treat > warnings as errors - I just fix the warnings on next edit). In current mainline gcc -fdiagnostics-show-option is the default. It's documented in a section on diagnostic messages: http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Language-Independent-Options.html But, yeah, especially for web usage, it would probably be nice if there were a reference to that section from the section on warnings. Ian