Attached patch fixes latest failure:

program_parse.tab.c:1958:3: error: implicit declaration of function 'YYID' [-
Werror=implicit-function-declaration]
   YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
   ^

-- 
Laurent Carlier
ArchLinux Developer
http://www.archlinux.org
>From e3c19953c2f8ab5afe473b6080dcc29fdbebd50c Mon Sep 17 00:00:00 2001
From: Laurent Carlier <lordhea...@gmail.com>
Date: Wed, 31 Jul 2013 15:18:52 +0200
Subject: [PATCH 7/7] mesa/program: remove useless YYID

This fixes the build with Bison 3.0. Also works with Bison 2.7.1.
---
 src/mesa/program/program_parse.y | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y
index e2da633..80f1998 100644
--- a/src/mesa/program/program_parse.y
+++ b/src/mesa/program/program_parse.y
@@ -98,7 +98,7 @@ static struct asm_instruction *asm_instruction_copy_ctor(
 
 #define YYLLOC_DEFAULT(Current, Rhs, N)					\
    do {									\
-      if (YYID(N)) {							\
+      if (N) {							\
 	 (Current).first_line = YYRHSLOC(Rhs, 1).first_line;		\
 	 (Current).first_column = YYRHSLOC(Rhs, 1).first_column;	\
 	 (Current).position = YYRHSLOC(Rhs, 1).position;		\
@@ -112,7 +112,7 @@ static struct asm_instruction *asm_instruction_copy_ctor(
 	 (Current).position = YYRHSLOC(Rhs, 0).position			\
 	    + (Current).first_column;					\
       }									\
-   } while(YYID(0))
+   } while(0)
 
 #define YYLEX_PARAM state->scanner
 %}
-- 
1.8.3.4

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to