Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3e4264c

Browse files
committed
Add %option noinput to contrib's flex scanners, to suppress gcc 4.3
warnings. Peter did this for core awhile ago but evidently missed contrib.
1 parent e5536e7 commit 3e4264c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

contrib/cube/cubescan.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{
22
/*
33
** A scanner for EMP-style numeric ranges
4-
* $PostgreSQL: pgsql/contrib/cube/cubescan.l,v 1.11 2006/03/11 04:38:28 momjian Exp $
4+
* $PostgreSQL: pgsql/contrib/cube/cubescan.l,v 1.12 2008/08/25 23:12:45 tgl Exp $
55
*/
66

77
#include "postgres.h"
@@ -29,6 +29,7 @@ void cube_scanner_finish(void);
2929
%option 8bit
3030
%option never-interactive
3131
%option nodefault
32+
%option noinput
3233
%option nounput
3334
%option noyywrap
3435
%option prefix="cube_yy"

contrib/seg/segscan.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void seg_scanner_finish(void);
2727
%option 8bit
2828
%option never-interactive
2929
%option nodefault
30+
%option noinput
3031
%option nounput
3132
%option noyywrap
3233
%option prefix="seg_yy"

0 commit comments

Comments
 (0)