clang-tidy modernize
[alexxy/gromacs.git] / src / gromacs / selection / parser.patch
1 --- parser.h    2018-08-12 14:27:05.680844826 -0700
2 +++ parser.h    2018-08-12 14:23:36.936847674 -0700
3 @@ -177,7 +177,7 @@
4
5  int _gmx_sel_yypush_parse (_gmx_sel_yypstate *ps, int pushed_char, YYSTYPE const *pushed_val, YYLTYPE *pushed_loc, void *scanner);
6
7 -_gmx_sel_yypstate * _gmx_sel_yypstate_new (void);
8 +_gmx_sel_yypstate * _gmx_sel_yypstate_new ();
9  void _gmx_sel_yypstate_delete (_gmx_sel_yypstate *ps);
10
11  #endif /* !YY__GMX_SEL_YY_PARSER_H_INCLUDED  */
12 --- parser.cpp  2014-11-03 06:56:28.000000000 +0200
13 +++ parser.cpp  2014-11-03 06:57:35.000000000 +0200
14 @@ -437,7 +437,7 @@
15  
16  
17  #if (! defined yyoverflow \
18 -     && (! defined __cplusplus \
19 +     && (! defined __cplusplus || defined GMX_YYFORCE_C_STACK_EXTENSION \
20           || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
21               && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
22  
23 @@ -955,7 +955,7 @@
24  static void
25  yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, void *scanner)
26  {
27 -  FILE *yyo = yyoutput;
28 +  FILE *yyo gmx_unused = yyoutput;
29    YYUSE (yyo);
30    YYUSE (yylocationp);
31    YYUSE (scanner);