summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2004-01-06 19:03:44 +0000
committernectar <nectar@FreeBSD.org>2004-01-06 19:03:44 +0000
commit38f9e74fab470f8f7323aeeb10fdd9a5397dda37 (patch)
tree643e050a3efd857eb8ce26158f32f77b133274ee /usr.bin
parentc7cb1aef08077c2035a71fc0ee9f95c8604c8e4b (diff)
downloadFreeBSD-src-38f9e74fab470f8f7323aeeb10fdd9a5397dda37.zip
FreeBSD-src-38f9e74fab470f8f7323aeeb10fdd9a5397dda37.tar.gz
Mark a function as `unused' in generated code. (Sometimes it is used,
sometimes it is not, depending upon the input grammar.)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/lex/flex.skl8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/lex/flex.skl b/usr.bin/lex/flex.skl
index 7cb7bcb..6020950 100644
--- a/usr.bin/lex/flex.skl
+++ b/usr.bin/lex/flex.skl
@@ -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
OpenPOWER on IntegriCloud