git: 035dd78d30ba - main - libvgl: Remove set but unused andmask variable from VGLMouseInit.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 16:29:16 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=035dd78d30ba28a3dc15c05ec85ad10127165677
commit 035dd78d30ba28a3dc15c05ec85ad10127165677
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 16:28:59 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-20 16:28:59 +0000
libvgl: Remove set but unused andmask variable from VGLMouseInit.
Reported by: GCC
---
lib/libvgl/mouse.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/libvgl/mouse.c b/lib/libvgl/mouse.c
index 010a1b7b9c52..fc7ba2399387 100644
--- a/lib/libvgl/mouse.c
+++ b/lib/libvgl/mouse.c
@@ -284,22 +284,19 @@ VGLMouseInit(int mode)
{
struct mouse_info mouseinfo;
VGLBitmap *ormask;
- int andmask, border, error, i, interior;
+ int border, error, i, interior;
switch (VGLModeInfo.vi_mem_model) {
case V_INFO_MM_PACKED:
case V_INFO_MM_PLANAR:
- andmask = 0x0f;
border = 0x0f;
interior = 0x04;
break;
case V_INFO_MM_VGAX:
- andmask = 0x3f;
border = 0x3f;
interior = 0x24;
break;
default:
- andmask = 0xff;
border = BORDER;
interior = INTERIOR;
break;