Fix Portland compiler warnings
[alexxy/gromacs.git] / src / gromacs / selection / scanner.patch
1 --- scanner.cpp 2014-08-12 22:12:01.000000000 +0300
2 +++ scanner.cpp 2014-08-12 22:17:03.000000000 +0300
3 @@ -331,7 +331,7 @@
4  
5  #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
6  
7 -#define _gmx_sel_yywrap(yyscanner) 1
8 +static inline int _gmx_sel_yywrap(yyscan_t yyscanner) { return 1; }
9  #define YY_SKIP_YYWRAP
10  
11  typedef unsigned char YY_CHAR;
12 @@ -1807,7 +1807,7 @@
13         YY_BUFFER_STATE b;
14         char *buf;
15         yy_size_t n;
16 -       int i;
17 +       yy_size_t i;
18      
19         /* Get memory for full buffer, including space for trailing EOB's. */
20         n = _yybytes_len + 2;