This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Named warnings


On Sat, 25 Jan 2003, Fergus Henderson uttered the following:
> 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:
> 
>  	bla.c:14:3: warning: conversion-signed-unsigned
>  	               Implicit conversion from signed to unsigned
>  	bla.c:6:1: warning: comment-multi-line
>  	              (-Wcomment-multi-line was enabled by -Wall)
>  	              ==================================================
>  	              Multi-line comment:
>  	              
>  	              A `//' comment line ends in a `\', which causes
>  	              the next line to be part of that comment as well.
>  	              This is probably not what you want.
>  	              ==================================================

As long as splitting a single warning over multiple lines can be
disabled.

(Often `grep' will serve to replace a complex -Wno-warning-here switch,
 but that doesn't work so well if the warning is multi-line.
 The existing cases where GCC splits warnings over multiple lines are
 annoying enough!)

-- 
`I knew that there had to be aliens somewhere in the universe.  What I
 did not know until now was that they read USENET.' --- Mark Hughes,
      on those who unaccountably fail to like _A Fire Upon The Deep_


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]