V0.9 Remove more clang warnings.

clang warns that the yyinput function generated by flex is never used.
This commit is contained in:
Martin Whitaker 2011-09-24 16:47:17 +01:00 committed by Stephen Williams
parent 4f2a41f186
commit fc8195fd61
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -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 <cstring>
# include <cassert>
# define YY_NO_INPUT
static char* strdupnew(char const *str)
{
return str ? strcpy(new char [strlen(str)+1], str) : 0;