From 9298fea93f101a417bbd15a879f319fcdcf41cf0 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 15 Feb 2019 18:04:29 +0000 Subject: Global variable errtxt is defined in two separate files. This is a minor C standard conformance issue, and causes the build to fail with a duplicate symbol error when CFLAGS includes "-fno-common". The following patch fixes the issue by making the variables static. --- src/nsgenbind-parser.y | 2 +- src/webidl-parser.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nsgenbind-parser.y b/src/nsgenbind-parser.y index d73401e..683c15b 100644 --- a/src/nsgenbind-parser.y +++ b/src/nsgenbind-parser.y @@ -91,7 +91,7 @@ typedef struct YYLTYPE { #include "webidl-ast.h" #include "nsgenbind-ast.h" -char *errtxt; +static char *errtxt; static void nsgenbind_error(YYLTYPE *locp, char *filename, diff --git a/src/webidl-parser.y b/src/webidl-parser.y index 0e46b17..5fb991d 100644 --- a/src/webidl-parser.y +++ b/src/webidl-parser.y @@ -32,7 +32,7 @@ #include "webidl-ast.h" -char *errtxt; +static char *errtxt; static void webidl_error(YYLTYPE *locp, struct webidl_node **winbind_ast, const char *str) -- cgit v1.2.3