openbsd-ports/lang/gcc/4.0/patches/patch-gcc_cp_parser_c

13 lines
537 B
Plaintext

$OpenBSD: patch-gcc_cp_parser_c,v 1.10 2006/01/09 15:31:47 espie Exp $
--- gcc/cp/parser.c.orig Wed Jan 4 19:50:07 2006
+++ gcc/cp/parser.c Mon Jan 9 13:36:27 2006
@@ -15797,7 +15797,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);
}