summaryrefslogtreecommitdiff
path: root/devel/cqual/patches/patch-ab
blob: ecffeeac4c83b480b6265df5affc2ebb1d17efe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ab,v 1.1 2006/01/13 07:51:42 rillig Exp $

This patch avoid tons of #line warnings when parsing the output of newer
gcc.

--- src/c-lex.c.orig	2003-09-10 20:52:02.000000000 +0200
+++ src/c-lex.c	2006-01-12 03:05:04.000000000 +0100
@@ -843,6 +843,9 @@ linenum:
 	  c = GETC();
 	  while (c == ' ' || c == '\t')
 	    c = GETC();
+	  /* Skip the file type (3 = system header, ...) of gcc */
+	  if (isdigit(c))
+	    c = GETC();
 	  if (c == '\n')
 	    return c;
 	  UNGETC (c);