summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorassar <assar@FreeBSD.org>2001-07-21 19:47:17 +0000
committerassar <assar@FreeBSD.org>2001-07-21 19:47:17 +0000
commitd5b518a5b5e8a2972936e37b55d04fc0e8ddfb6d (patch)
tree3d418caa03c7f8b11cf67fc98e1517a893eb595b /usr.bin/lex
parent4d02c9c339ac8538f2f163e4048575982a9dfe68 (diff)
downloadFreeBSD-src-d5b518a5b5e8a2972936e37b55d04fc0e8ddfb6d.zip
FreeBSD-src-d5b518a5b5e8a2972936e37b55d04fc0e8ddfb6d.tar.gz
add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
Diffstat (limited to 'usr.bin/lex')
-rw-r--r--usr.bin/lex/flex.skl6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/lex/flex.skl b/usr.bin/lex/flex.skl
index e894a27..b7d9297 100644
--- a/usr.bin/lex/flex.skl
+++ b/usr.bin/lex/flex.skl
@@ -313,7 +313,11 @@ extern int yywrap YY_PROTO(( void ));
%-
#ifndef YY_NO_UNPUT
-static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+static void yyunput YY_PROTO(( int c, char *buf_ptr ))
+#ifdef __GNUC__
+ __attribute__ ((unused))
+#endif
+;
#endif
%*
OpenPOWER on IntegriCloud