From 30e3eaeadc9d5b9d685f988c04578ee585d9b081 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Tue, 27 Oct 2015 15:58:08 +1000 Subject: [PATCH] Gmt module: Prevent conflict of definitions of yyguts_t from different lex files. --- modules/gmt/gmt_filter_headfoot.l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gmt/gmt_filter_headfoot.l b/modules/gmt/gmt_filter_headfoot.l index e5b5a0a..dc1c1c5 100644 --- a/modules/gmt/gmt_filter_headfoot.l +++ b/modules/gmt/gmt_filter_headfoot.l @@ -16,6 +16,8 @@ #define register // Get rid of warning on unused function #define YY_NO_INPUT +// struct yyguts_t defined in each flex output file, this emits warning at linking stage +#define yyguts_t gmt_filter_headfootguts_t #define yyterminate {return 0;} %}