Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/lex add an unused attribute to yyunput to avoid warn...
details: https://anonhg.NetBSD.org/src/rev/515b81bdafd4
branches: trunk
changeset: 488072:515b81bdafd4
user: assar <assar%NetBSD.org@localhost>
date: Sat Jun 17 11:56:21 2000 +0000
description:
add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
diffstat:
usr.bin/lex/flex.skl | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r b32277e4d500 -r 515b81bdafd4 usr.bin/lex/flex.skl
--- a/usr.bin/lex/flex.skl Sat Jun 17 11:30:49 2000 +0000
+++ b/usr.bin/lex/flex.skl Sat Jun 17 11:56:21 2000 +0000
@@ -1,7 +1,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $NetBSD: flex.skl,v 1.14 2000/03/17 23:21:45 simonb Exp $
+ * $NetBSD: flex.skl,v 1.15 2000/06/17 11:56:21 assar Exp $
*/
#define FLEX_SCANNER
@@ -314,7 +314,11 @@
%-
#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
%*
Home |
Main Index |
Thread Index |
Old Index