From: anton Date: Sun, 31 Dec 2017 09:40:41 +0000 (+0000) Subject: Remove an unused variable and instruct lex not to produce the input() function X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7b03e13853aa45790bb0a77c8b9f899d4d86a464;p=openbsd Remove an unused variable and instruct lex not to produce the input() function since it's never used; ok guenther@ --- diff --git a/sbin/wsconsctl/map_scan.l b/sbin/wsconsctl/map_scan.l index 40c793a9577..e64e4208e94 100644 --- a/sbin/wsconsctl/map_scan.l +++ b/sbin/wsconsctl/map_scan.l @@ -1,4 +1,4 @@ -/* $OpenBSD: map_scan.l,v 1.7 2017/07/09 14:04:50 espie Exp $ */ +/* $OpenBSD: map_scan.l,v 1.8 2017/12/31 09:40:41 anton Exp $ */ /* $NetBSD: map_scan.l 1.1 1998/12/28 14:01:17 hannken Exp $ */ /*- @@ -30,7 +30,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -%option noyywrap +%option noinput noyywrap %{ diff --git a/sbin/wsconsctl/mousecfg.c b/sbin/wsconsctl/mousecfg.c index 78f4d99dabb..6830f2e4362 100644 --- a/sbin/wsconsctl/mousecfg.c +++ b/sbin/wsconsctl/mousecfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mousecfg.c,v 1.1 2017/07/21 20:38:20 bru Exp $ */ +/* $OpenBSD: mousecfg.c,v 1.2 2017/12/31 09:40:41 anton Exp $ */ /* * Copyright (c) 2017 Ulf Brosziewski @@ -303,7 +303,6 @@ mousecfg_pr_field(struct wsmouse_parameters *field) void mousecfg_rd_field(struct wsmouse_parameters *field, char *val) { - enum wsmousecfg first = field->params[0].key; int i, n; const char *s; float f;