From fc8195fd6112a3ed117c2ad07ac6c3d98ddcb622 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 24 Sep 2011 16:47:17 +0100 Subject: [PATCH] V0.9 Remove more clang warnings. clang warns that the yyinput function generated by flex is never used. --- lexor.lex | 4 +++- vvp/lexor.lex | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lexor.lex b/lexor.lex index affd9d794..dc786935f 100644 --- a/lexor.lex +++ b/lexor.lex @@ -4,7 +4,7 @@ %{ /* - * Copyright (c) 1998-2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 1998-2011 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -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/vvp/lexor.lex b/vvp/lexor.lex index d7ac863ff..effe85598 100644 --- a/vvp/lexor.lex +++ b/vvp/lexor.lex @@ -4,7 +4,7 @@ %{ /* - * Copyright (c) 2001-2009 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2009,2011 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -28,6 +28,8 @@ # include # include +# define YY_NO_INPUT + static char* strdupnew(char const *str) { return str ? strcpy(new char [strlen(str)+1], str) : 0;