From d5b518a5b5e8a2972936e37b55d04fc0e8ddfb6d Mon Sep 17 00:00:00 2001 From: assar Date: Sat, 21 Jul 2001 19:47:17 +0000 Subject: add an unused attribute to yyunput to avoid warnings (errors) when it's not being used --- usr.bin/lex/flex.skl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin/lex') 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 %* -- cgit v1.1