This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warning wrapping (was RE: Suppressing specific compiler warnings)
- From: "Ruth Ivimey-Cook" <Ruth dot Ivimey-Cook at ivimey dot org>
- To: "'Matt Austern'" <austern at apple dot com>
- Cc: <gcc at gcc dot gnu dot org>,<llewelly at xmission dot com>
- Date: Thu, 27 May 2004 09:08:38 +0100
- Subject: Warning wrapping (was RE: Suppressing specific compiler warnings)
- Organization: At Home
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