[Flex-help] Spurious compiler warning when building PostgreSQL
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Peter G. <pet...@gm...> - 2011-08-08 10:59:08
|
In file included from gram.y:12962:0: scan.c: In function ‘yy_try_NUL_trans’: scan.c:16246:23: warning: unused variable ‘yyg’ [-Wunused-variable] This refers to this variable: struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ This is a known problem with Flex. I'd be really grateful is someone could figure out a way of fixing this - the responsibility to fix the warning, which is seen on every compiler, clearly lies with the Flex developers. We can't do anything about it, much as we'd like to. If an elegant solution doesn't present itself, surely it can't be a problem to tack on some code that will be optimised away to suppress the warning? Surely that's better than having everyone wonder why this warning is seen? Thanks -- Regards, Peter Geoghegan |