This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix compilation with gcc-4.7.x
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 20 Dec 2011 14:06:10 -0700
- Subject: Re: [patch] Fix compilation with gcc-4.7.x
- References: <20111220194410.GA26007@host2.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> va_start (args, fmt);
Jan> throw_it (RETURN_ERROR, error, fmt, args);
Jan> - va_end (args);
Jan> + /* NOTREACHED */
My recollection is that va_start and va_end can be macros including "{"
and "}", and so one must always pair them.
It seems more like a gcc bug to me.
Tom