summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/complex/Scanner.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-09-18 01:01:03 -0700
committerBenoit Foucher <benoit@zeroc.com>2013-09-18 01:01:03 -0700
commitb9c88a1c52e71d00c1a528f787fcb306ce7c7b1d (patch)
tree588d098ecb6628afecf5f8b1bf89110cf11cc059 /cpp/test/Freeze/complex/Scanner.cpp
parenttesticedist.py minor fixes for Windows platforms. (diff)
downloadice-b9c88a1c52e71d00c1a528f787fcb306ce7c7b1d.tar.bz2
ice-b9c88a1c52e71d00c1a528f787fcb306ce7c7b1d.tar.xz
ice-b9c88a1c52e71d00c1a528f787fcb306ce7c7b1d.zip
Fixed ICE-5436: Freeze/complex build warning
Diffstat (limited to 'cpp/test/Freeze/complex/Scanner.cpp')
-rw-r--r--cpp/test/Freeze/complex/Scanner.cpp63
1 files changed, 10 insertions, 53 deletions
diff --git a/cpp/test/Freeze/complex/Scanner.cpp b/cpp/test/Freeze/complex/Scanner.cpp
index 5e4f8e74da2..494cbc1b732 100644
--- a/cpp/test/Freeze/complex/Scanner.cpp
+++ b/cpp/test/Freeze/complex/Scanner.cpp
@@ -482,11 +482,6 @@ char *yytext;
# pragma warning( 4 : 4244 )
#endif
-#if defined(__GNUC__)
-# pragma GCC diagnostic warning "-Wunused-function"
-#endif
-
-
using namespace std;
using namespace Ice;
@@ -510,7 +505,8 @@ using namespace Ice;
#define YY_INPUT(buf, result, maxSize) parser->getInput(buf, result, maxSize)
-#line 513 "lex.yy.c"
+#define YY_NO_INPUT 1
+#line 509 "lex.yy.c"
#define INITIAL 0
@@ -569,8 +565,6 @@ extern int yywrap (void );
#endif
#endif
- static void yyunput (int c,char *buf_ptr );
-
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@@ -692,10 +686,10 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 67 "Scanner.l"
+#line 64 "Scanner.l"
-#line 698 "lex.yy.c"
+#line 692 "lex.yy.c"
if ( !(yy_init) )
{
@@ -776,7 +770,7 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
-#line 69 "Scanner.l"
+#line 66 "Scanner.l"
{
*yylvalp = new Complex::NumberNodeI(atoi(yytext));
return TOK_NUMBER;
@@ -784,20 +778,20 @@ YY_RULE_SETUP
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 74 "Scanner.l"
+#line 71 "Scanner.l"
/* eat whitespace */
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 76 "Scanner.l"
+#line 73 "Scanner.l"
{ return *yytext; }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 78 "Scanner.l"
+#line 75 "Scanner.l"
ECHO;
YY_BREAK
-#line 800 "lex.yy.c"
+#line 794 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
yyterminate();
@@ -1127,43 +1121,6 @@ static int yy_get_next_buffer (void)
return yy_is_jam ? 0 : yy_current_state;
}
- static void yyunput (int c, register char * yy_bp )
-{
- register char *yy_cp;
-
- yy_cp = (yy_c_buf_p);
-
- /* undo effects of setting up yytext */
- *yy_cp = (yy_hold_char);
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register int number_to_move = (yy_n_chars) + 2;
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
- register char *source =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
-
- while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- *--dest = *--source;
-
- yy_cp += (int) (dest - source);
- yy_bp += (int) (dest - source);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- *--yy_cp = (char) c;
-
- (yytext_ptr) = yy_bp;
- (yy_hold_char) = *yy_cp;
- (yy_c_buf_p) = yy_cp;
-}
-
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
@@ -1792,7 +1749,7 @@ void yyfree (void * ptr )
#define YYTABLES_NAME "yytables"
-#line 78 "Scanner.l"
+#line 75 "Scanner.l"