openbsd-ports/lang/gcc/4.2/patches/patch-gcc_cp_parser_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
536 B
Plaintext

$OpenBSD: patch-gcc_cp_parser_c,v 1.7 2009/04/16 18:36:48 espie Exp $
--- gcc/cp/parser.c.orig Sun May 11 21:58:40 2008
+++ gcc/cp/parser.c Tue Apr 7 19:38:59 2009
@@ -16522,7 +16522,7 @@ cp_parser_require (cp_parser* parser,
/* Output the MESSAGE -- unless we're parsing tentatively. */
if (!cp_parser_simulate_error (parser))
{
- char *message = concat ("expected ", token_desc, NULL);
+ char *message = concat ("expected ", token_desc, (void *)0);
cp_parser_error (parser, message);
free (message);
}