This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Named warnings
Fergus Henderson wrote:
> The Mercury compiler uses an approach similar to this.
> Most users seem to be happy with it. But a few
> have requested that we provide a mode in which the file
> name and line/column number is only printed once, at
> the start of the error, rather than once per line:
That's fine with me, too -- but this seems to be more difficult
to 'parse' by automated tools (read: grep).
> This apparently works better in some environments (I forget which --
> maybe Emacs?).
>
> Another useful refinement is that if the compiler issues a warning
> for which more information is available, it should set
> a flag, and if at the end of compilation this flag is set,
> it should output an additional final message:
>
> Recompile with `-Wexplanation' for more information.
That should trigger on _any_ warning, then ;)
Segher