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/webidl-parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webidl-parser.y') 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