Mark a function as `unused' in generated code. (Sometimes it is used,

sometimes it is not, depending upon the input grammar.)
This commit is contained in:
Jacques Vidrine 2004-01-06 19:03:44 +00:00
parent ab579b9e93
commit d48ff1e438
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124186

View File

@ -5,6 +5,12 @@
* $FreeBSD$
*/
#if defined(__FreeBSD__)
#include <sys/cdefs.h>
#else
#define __unused
#endif
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
@ -257,7 +263,7 @@ YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
%*
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) __unused;
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer