Dynare++: fixed warning about unused functions
parent
ab87ccac06
commit
1ca828c134
|
@ -1,4 +1,6 @@
|
|||
%{
|
||||
// Copyright (C) 2007-2011, Ondra Kamenik
|
||||
|
||||
#include "location.h"
|
||||
#include "csv_tab.hh"
|
||||
|
||||
|
@ -9,7 +11,6 @@
|
|||
|
||||
%option nounput
|
||||
%option noyy_top_state
|
||||
%option stack
|
||||
%option yylineno
|
||||
%option prefix="csv_"
|
||||
%option never-interactive
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
extern ogp::FormulaParser* fparser;
|
||||
extern YYLTYPE fmla_lloc;
|
||||
|
||||
static void print_token_value (FILE *, int, YYSTYPE);
|
||||
#define YYPRINT(file, type, value) print_token_value (file, type, value)
|
||||
// static void print_token_value (FILE *, int, YYSTYPE);
|
||||
// #define YYPRINT(file, type, value) print_token_value (file, type, value)
|
||||
|
||||
%}
|
||||
|
||||
|
@ -80,8 +80,10 @@ void fmla_error(const char* s)
|
|||
fparser->error(s);
|
||||
}
|
||||
|
||||
/*
|
||||
static void print_token_value(FILE* file, int type, YYSTYPE value)
|
||||
{
|
||||
if (type == NAME)
|
||||
fprintf(file, "%s", value.string);
|
||||
}
|
||||
*/
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
extern ogdyn::DynareParser* dynare_parser;
|
||||
int symblist_flag;
|
||||
|
||||
static void print_token_value1 (FILE *, int, YYSTYPE);
|
||||
#define YYPRINT(file, type, value) print_token_value1 (file, type, value)
|
||||
// static void print_token_value1 (FILE *, int, YYSTYPE);
|
||||
//#define YYPRINT(file, type, value) print_token_value1 (file, type, value)
|
||||
|
||||
%}
|
||||
|
||||
|
@ -112,6 +112,7 @@ void dynglob_error(const char* mes)
|
|||
dynare_parser->error(mes);
|
||||
}
|
||||
|
||||
/*
|
||||
static void print_token_value1(FILE* file, int type, YYSTYPE value)
|
||||
{
|
||||
if (type == NAME)
|
||||
|
@ -119,3 +120,4 @@ static void print_token_value1(FILE* file, int type, YYSTYPE value)
|
|||
if (type == CHARACTER)
|
||||
fprintf(file, "%c", value.character);
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue