[patch] Fix compilation with gcc-4.7.x

Tom Tromey tromey@redhat.com
Tue Dec 20 21:34:00 GMT 2011


>>>>> "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



More information about the Gdb-patches mailing list