Re: [Flex-devel] Spurious compiler warning when building PostgreSQL
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Peter M. <pet...@gm...> - 2011-08-15 22:00:01
|
Can you confirm scan.c was regenerated? I believe if postgres doesn't find a supported flex it uses the one included in the postgresql source instead of regenerating it. There's a check in configure to see if flex $1 = 2 and $2 = 5 and $3 >= 31 which should be == in both places and also add a check if $1 == 2 && $2 > 5. Sent from my iPhone On Aug 15, 2011, at 17:33, Peter Geoghegan <pe...@2n...> wrote: > Thanks for your efforts Peter. > > I'm disappointed to report that it does not. Here is the context of > the warning, within scan.c: > > /* yy_try_NUL_trans - try to make a transition on the NUL character > * > * synopsis > * next_state = yy_try_NUL_trans( current_state ); > */ > static yy_state_type yy_try_NUL_trans (yy_state_type > yy_current_state , yyscan_t yyscanner) > { > register int yy_is_jam; > struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var > may be unused depending upon options. */ > > register int yy_c = 256; > register yyconst struct yy_trans_info *yy_trans_info; > > yy_trans_info = &yy_current_state[(unsigned int) yy_c]; > yy_current_state += yy_trans_info->yy_nxt; > yy_is_jam = (yy_trans_info->yy_verify != yy_c); > > return yy_is_jam ? 0 : yy_current_state; > } > > Perhaps that helps? > > Thanks > -- > Peter Geoghegan http://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Training and Services |