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]

Warning wrapping (was RE: Suppressing specific compiler warnings)


Matt wrote:

> I agree that names are good.  I'd just like to distinguish 
> between the name of a warning and the text that gets printed 
> out.  If I write struct A {
>    int x;
>    int y;
>    A() : y(2), x(3) { }
> };
> then (on at least one compiler version; in general the 
> details vary from release to release) I will get:
> 
> foo.cc: In constructor `A::A()':
> foo.cc:3: warning: `A::y' will be initialized after
> foo.cc:2: warning:   `int A::x'

One of the things I dislike about current gcc versions is multiline
warnings. Is there any way to make the compiler produce:

> foo.cc: In constructor `A::A()':
> foo.cc:3: warning: `A::y' will be initialized after `int A::x'

Instead?
Ruth



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