diff --git a/src/event.c b/src/event.c
index 59b96e37..1f42c68d 100644
--- a/src/event.c
+++ b/src/event.c
@@ -179,12 +179,14 @@ static int pipefd[2] = {-1, -1};
 static splay_tree_t signal_tree = {.compare = (splay_compare_t)signal_compare};
 
 static void signal_handler(int signum) {
-	unsigned char num = signum;
+	unsigned char num = (unsigned char)signum;
 	write(pipefd[1], &num, 1);
 }
 
 static void signalio_handler(void *data, int flags) {
 	unsigned char signum;
+	UNUSED(flags);
+	UNUSED(data);
 	if(read(pipefd[0], &signum, 1) != 1)
 		return;
 
diff --git a/src/sptps.c b/src/sptps.c
index d26c5827..48467e79 100644
--- a/src/sptps.c
+++ b/src/sptps.c
@@ -28,6 +28,7 @@
 #include "logger.h"
 #include "prf.h"
 #include "sptps.h"
+#include "utils.h"
 
 unsigned int sptps_replaywin = 16;
 
@@ -52,9 +53,15 @@ unsigned int sptps_replaywin = 16;
 */
 
 void sptps_log_quiet(sptps_t *s, int s_errno, const char *format, va_list ap) {
+	UNUSED(s);
+	UNUSED(s_errno);
+	UNUSED(format);
+	UNUSED(ap);
 }
 
 void sptps_log_stderr(sptps_t *s, int s_errno, const char *format, va_list ap) {
+	UNUSED(s);
+	UNUSED(s_errno);
 	vfprintf(stderr, format, ap);
 	fputc('\n', stderr);
 }