Skip to content

Commit a0899ff

Browse files
committed
add defaults to switchs to prevent compiler warnings
1 parent 8293412 commit a0899ff

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

jsquery_scan.c

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define FLEX_SCANNER
2929
#define YY_FLEX_MAJOR_VERSION 2
3030
#define YY_FLEX_MINOR_VERSION 5
31-
#define YY_FLEX_SUBMINOR_VERSION 37
31+
#define YY_FLEX_SUBMINOR_VERSION 39
3232
#if YY_FLEX_SUBMINOR_VERSION > 0
3333
#define FLEX_BETA
3434
#endif
@@ -187,6 +187,7 @@ extern FILE *jsquery_yyin, *jsquery_yyout;
187187
#define EOB_ACT_LAST_MATCH 2
188188

189189
#define YY_LESS_LINENO(n)
190+
#define YY_LINENO_REWIND_TO(ptr)
190191

191192
/* Return all but the first "n" matched characters back to the input stream. */
192193
#define yyless(n) \
@@ -526,7 +527,7 @@ static int checkSpecialVal(void); /* examine scanstring for the special value */
526527
#define YY_NO_INPUT 1
527528

528529

529-
#line 530 "jsquery_scan.c"
530+
#line 531 "jsquery_scan.c"
530531

531532
#define INITIAL 0
532533
#define xQUOTED 1
@@ -716,11 +717,6 @@ YY_DECL
716717

717718
YYSTYPE * yylval;
718719

719-
#line 50 "jsquery_scan.l"
720-
721-
722-
#line 723 "jsquery_scan.c"
723-
724720
yylval = yylval_param;
725721

726722
if ( !(yy_init) )
@@ -749,6 +745,12 @@ YY_DECL
749745
jsquery_yy_load_buffer_state( );
750746
}
751747

748+
{
749+
#line 50 "jsquery_scan.l"
750+
751+
752+
#line 753 "jsquery_scan.c"
753+
752754
while ( 1 ) /* loops until end-of-file is reached */
753755
{
754756
yy_cp = (yy_c_buf_p);
@@ -765,7 +767,7 @@ YY_DECL
765767
yy_match:
766768
do
767769
{
768-
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
770+
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
769771
if ( yy_accept[yy_current_state] )
770772
{
771773
(yy_last_accepting_state) = yy_current_state;
@@ -940,7 +942,7 @@ YY_RULE_SETUP
940942
#line 135 "jsquery_scan.l"
941943
YY_FATAL_ERROR( "flex scanner jammed" );
942944
YY_BREAK
943-
#line 944 "jsquery_scan.c"
945+
#line 946 "jsquery_scan.c"
944946

945947
case YY_END_OF_BUFFER:
946948
{
@@ -1070,6 +1072,7 @@ YY_FATAL_ERROR( "flex scanner jammed" );
10701072
"fatal flex scanner internal error--no action found" );
10711073
} /* end of action switch */
10721074
} /* end of scanning one token */
1075+
} /* end of user's declarations */
10731076
} /* end of jsquery_yylex */
10741077

10751078
/* yy_get_next_buffer - try to read in a new buffer
@@ -1666,7 +1669,7 @@ YY_BUFFER_STATE jsquery_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yyby
16661669
YY_BUFFER_STATE b;
16671670
char *buf;
16681671
yy_size_t n;
1669-
int i;
1672+
yy_size_t i;
16701673

16711674
/* Get memory for full buffer, including space for trailing EOB's. */
16721675
n = _yybytes_len + 2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy