openbsd-ports/lang/gcc/4.2/patches/patch-gcc_diagnostic_c
espie ced95bccdd move to gcc 4.2.4, with a lot of work from kurt@ as well.
Doesn't build on alpha yet, but should be on the way...
2009-04-16 18:36:48 +00:00

13 lines
671 B
Plaintext

$OpenBSD: patch-gcc_diagnostic_c,v 1.5 2009/04/16 18:36:48 espie Exp $
--- gcc/diagnostic.c.orig Sat Sep 1 17:28:30 2007
+++ gcc/diagnostic.c Tue Apr 7 19:38:59 2009
@@ -397,7 +397,7 @@ diagnostic_report_diagnostic (diagnostic_context *cont
if (context->show_option_requested && diagnostic->option_index)
diagnostic->message.format_spec
= ACONCAT ((diagnostic->message.format_spec,
- " [", cl_options[diagnostic->option_index].opt_text, "]", NULL));
+ " [", cl_options[diagnostic->option_index].opt_text, "]", (char *)0));
diagnostic->message.locus = &diagnostic->location;
pp_format (context->printer, &diagnostic->message);