git: 9front

Download patch

ref: 90506cfeed5aedc3799a60ef0248ce6857970082
parent: 6778dde4f5f7ba09b1660c345ad1025c9888833b
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Fri Aug 9 23:58:52 EDT 2013

rio: fix unused variable warning in wscroll()

--- a/sys/src/cmd/rio/scrl.c
+++ b/sys/src/cmd/rio/scrl.c
@@ -126,11 +126,10 @@
 {
 	uint p0, oldp0;
 	Rectangle s;
-	int x, y, my, h, first;
+	int y, my, h, first;
 
 	s = insetrect(w->scrollr, 1);
 	h = s.max.y-s.min.y;
-	x = (s.min.x+s.max.x)/2;
 	oldp0 = ~0;
 	first = TRUE;
 	do{
--