shithub: riscv

Download patch

ref: dfe6118e302d63d21251aa18fb1d12e15bcbe482
parent: 66531b005f61368f6f8edcd7641b3894ff8d4c29
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{
--