--- a/upmpd/upmpdutils.cxx
+++ b/upmpd/upmpdutils.cxx
@@ -69,7 +69,7 @@
     // normally default to the posix version.
     // At worse we get no message at all here.
     errbuf[0] = 0;
-    strerror_r(_errno, errbuf, ERRBUFSZ);
+    (void)strerror_r(_errno, errbuf, ERRBUFSZ);
     reason->append(errbuf);
 #endif
 }
@@ -90,7 +90,6 @@
     data.reserve(st.st_size+1);
 
     char buf[RDBUFSZ];
-    size_t totread = 0;
     for (;;) {
 	int n = read(fd, buf, RDBUFSZ);
 	if (n < 0) {