[Kst] branches/work/kst/portto4/kst/src/libkstmath
Peter Kümmel
syntheticpp at gmx.net
Thu Apr 29 14:36:31 CEST 2010
SVN commit 1120605 by kuemmel:
remove GCC/MSVC warnings
CCBUG: 218293
M +11 -3 escan.cpp
--- branches/work/kst/portto4/kst/src/libkstmath/escan.cpp #1120604:1120605
@@ -1,5 +1,9 @@
#include "kstmath_export.h"
+#ifdef Q_CC_MSVC
+#define strdup _strdup
+#endif
+
#line 3 "lex.yy.c"
#define YY_INT_ALIGNED short int
@@ -336,7 +340,7 @@
/* Begin user sect3 */
-#define yywrap(n) 1
+#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
@@ -527,7 +531,7 @@
#endif
#endif
- static void yyunput (int c,char *buf_ptr );
+//static void yyunput (int c,char *buf_ptr );
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
@@ -1175,7 +1179,7 @@
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- (yy_n_chars), num_to_read );
+ (yy_n_chars), (size_t)num_to_read );
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
@@ -1265,6 +1269,9 @@
return yy_is_jam ? 0 : yy_current_state;
}
+
+#if 0
+// Not used
static void yyunput (int c, register char * yy_bp )
{
register char *yy_cp;
@@ -1301,6 +1308,7 @@
(yy_hold_char) = *yy_cp;
(yy_c_buf_p) = yy_cp;
}
+#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
More information about the Kst
mailing list