shithub: drawterm-fdroid

Download patch

ref: 3a32c0713dc419c1c7fafc56cbf3d83af832a391
parent: 8d356984a0f91ac2a0df4f13218ed4615c010b65
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 29 14:24:39 EDT 2016

fix some compiler warnings

--- a/kern/devaudio.c
+++ b/kern/devaudio.c
@@ -237,10 +237,8 @@
 	long m;
 	int i, v, left, right, in, out;
 	Cmdbuf *cb;
-	char *a;
 
 	USED(off);
-	a = vp;
 	switch((ulong)c->qid.path) {
 	default:
 		error(Eperm);
@@ -264,6 +262,7 @@
 			 */
 			if(cb->f[i][0] >= '0' && cb->f[i][0] <= '9') {
 				m = strtoul(cb->f[i], 0, 10);
+				USED(in);
 				if(!out)
 					goto cont0;
 				if(left && right)
--- a/kern/devip-win32.c
+++ b/kern/devip-win32.c
@@ -1,3 +1,4 @@
+#include <winsock2.h>
 #include <windows.h>
 #include <ws2tcpip.h>
 #include "u.h"
--- a/libmemdraw/draw.c
+++ b/libmemdraw/draw.c
@@ -94,7 +94,6 @@
 void
 memimagedraw(Memimage *dst, Rectangle r, Memimage *src, Point p0, Memimage *mask, Point p1, int op)
 {
-	static int n = 0;
 	Memdrawparam par;
 
 	if(mask == nil)