From c59d27e19fc792ab1afffd3dcf9c66121b0b97c7 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 24 Sep 2011 17:31:25 +0100 Subject: [PATCH] Remove more clang warnings. clang warns that the yyinput function generated by flex is never used. --- lexor.lex | 2 ++ vhdlpp/lexor.lex | 2 ++ vvp/lexor.lex | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lexor.lex b/lexor.lex index 44a4d246f..b392ffbed 100644 --- a/lexor.lex +++ b/lexor.lex @@ -40,6 +40,8 @@ # define YY_USER_INIT reset_lexor(); # define yylval VLlval +# define YY_NO_INPUT + /* * Lexical location information is passed in the yylloc variable to th * parser. The file names, strings, are kept in a list so that I can diff --git a/vhdlpp/lexor.lex b/vhdlpp/lexor.lex index 0de49af1f..bf300c6f3 100644 --- a/vhdlpp/lexor.lex +++ b/vhdlpp/lexor.lex @@ -35,6 +35,8 @@ # include # include +# define YY_NO_INPUT + # define YY_DECL int yylex(YYSTYPE*yylvalp, YYLTYPE*yyllocp, yyscan_t yyscanner) //class vhdlnum; //class vhdlreal; diff --git a/vvp/lexor.lex b/vvp/lexor.lex index 66bed1b7b..02d98b942 100644 --- a/vvp/lexor.lex +++ b/vvp/lexor.lex @@ -29,6 +29,8 @@ # include # include "ivl_alloc.h" +# define YY_NO_INPUT + static char* strdupnew(char const *str) { return str ? strcpy(new char [strlen(str)+1], str) : 0;