Dynare++: fixed warning about unused functions

time-shift
Sébastien Villemot 2011-01-14 16:29:11 +01:00
parent ab87ccac06
commit 1ca828c134
3 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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);
}
*/

View File

@ -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);
}
*/