6d591be
diff -Naur ../varnish-6.5.0.orig/bin/varnishd/http1/cache_http1_deliver.c ./bin/varnishd/http1/cache_http1_deliver.c
6d591be
--- ../varnish-6.5.0.orig/bin/varnishd/http1/cache_http1_deliver.c	2020-09-15 17:06:03.000000000 +0200
6d591be
+++ ./bin/varnishd/http1/cache_http1_deliver.c	2020-09-16 11:45:28.663086943 +0200
6d591be
@@ -76,7 +76,7 @@
6d591be
 	VSLb(req->vsl, SLT_RespReason, "Internal Server Error");
6d591be
 
6d591be
 	req->wrk->stats->client_resp_500++;
6d591be
-	(void)write(req->sp->fd, r_500, sizeof r_500 - 1);
6d591be
+	if (write(req->sp->fd, r_500, sizeof r_500 - 1)) 0;
6d591be
 	req->doclose = SC_TX_EOF;
6d591be
 }
6d591be
 
6d591be
diff -Naur ../varnish-6.5.0.orig/bin/varnishd/mgt/mgt_main.c ./bin/varnishd/mgt/mgt_main.c
6d591be
--- ../varnish-6.5.0.orig/bin/varnishd/mgt/mgt_main.c	2020-09-15 17:06:03.000000000 +0200
6d591be
+++ ./bin/varnishd/mgt/mgt_main.c	2020-09-16 11:46:21.323667133 +0200
6d591be
@@ -252,7 +252,7 @@
6d591be
 		return;
6d591be
 	VJ_rmdir("vmod_cache");
6d591be
 	VJ_unlink("_.pid");
6d591be
-	(void)chdir("/");
6d591be
+	if (chdir("/")) 0;
6d591be
 	VJ_rmdir(workdir);
6d591be
 }
6d591be
 
6d591be
diff -Naur ../varnish-6.5.0.orig/bin/varnishd/mgt/mgt_param.c ./bin/varnishd/mgt/mgt_param.c
6d591be
--- ../varnish-6.5.0.orig/bin/varnishd/mgt/mgt_param.c	2020-09-15 17:06:03.000000000 +0200
6d591be
+++ ./bin/varnishd/mgt/mgt_param.c	2020-09-16 11:45:28.771086082 +0200
6d591be
@@ -829,11 +829,11 @@
6d591be
 				t2 = strchr(t1 + 1, '\t');
6d591be
 				AN(t2);
6d591be
 				printf("\n\t*");
6d591be
-				(void)fwrite(t1 + 1, (t2 - 1) - t1, 1, stdout);
6d591be
+				if (fwrite(t1 + 1, (t2 - 1) - t1, 1, stdout)) 1;
6d591be
 				printf("*\n\t\t");
6d591be
 				p = t2 + 1;
6d591be
 			}
6d591be
-			(void)fwrite(p, q - p, 1, stdout);
6d591be
+			if(fwrite(p, q - p, 1, stdout)) 1;
6d591be
 			p = q;
6d591be
 			if (*p == '\n') {
6d591be
 				printf("\n");
6d591be
diff -Naur ../varnish-6.5.0.orig/bin/varnishtest/vtc_main.c ./bin/varnishtest/vtc_main.c
6d591be
--- ../varnish-6.5.0.orig/bin/varnishtest/vtc_main.c	2020-09-15 17:06:03.000000000 +0200
6d591be
+++ ./bin/varnishtest/vtc_main.c	2020-09-16 11:45:28.771086082 +0200
6d591be
@@ -233,7 +233,7 @@
6d591be
 	assert(cleaner_pid >= 0);
6d591be
 	if (cleaner_pid == 0) {
6d591be
 		closefd(&p[1]);
6d591be
-		(void)nice(1);		/* Not important */
6d591be
+		if (nice(1)) 1;
6d591be
 		setbuf(stdin, NULL);
6d591be
 		AZ(dup2(p[0], STDIN_FILENO));
6d591be
 		while (fgets(buf, sizeof buf, stdin)) {
6d591be
diff -Naur ../varnish-6.5.0.orig/lib/libvarnishapi/vsm.c ./lib/libvarnishapi/vsm.c
6d591be
--- ../varnish-6.5.0.orig/lib/libvarnishapi/vsm.c	2020-09-15 17:06:03.000000000 +0200
6d591be
+++ ./lib/libvarnishapi/vsm.c	2020-09-16 11:45:28.772086074 +0200
6d591be
@@ -764,18 +764,18 @@
6d591be
 		VSM_ResetError(vd);
6d591be
 		if (u & VSM_MGT_RUNNING) {
6d591be
 			if (progress >= 0 && n > 4)
6d591be
-				(void)write(progress, "\n", 1);
6d591be
+			  if (!write(progress, "\n", 1)) return (vsm_diag(vd, "Unable to write progress"));
6d591be
 			vd->attached = 1;
6d591be
 			return (0);
6d591be
 		}
6d591be
 		if (t0 < VTIM_mono()) {
6d591be
 			if (progress >= 0 && n > 4)
6d591be
-				(void)write(progress, "\n", 1);
6d591be
+				if (!write(progress, "\n", 1)) return (vsm_diag(vd, "Unable to write progress"));
6d591be
 			return (vsm_diag(vd,
6d591be
 			    "Could not get hold of varnishd, is it running?"));
6d591be
 		}
6d591be
 		if (progress >= 0 && !(++n % 4))
6d591be
-			(void)write(progress, ".", 1);
6d591be
+			if (!write(progress, ".", 1)) return (vsm_diag(vd, "Unable to write progress"));
6d591be
 		VTIM_sleep(.25);
6d591be
 	}
6d591be
 	return (vsm_diag(vd, "Attach interrupted"));