diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 0d809c915b14d1732eadf15599809bf73379b2e0..dbf53f4219ec7031b4cd1a582e5d3934b8918c3f 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -2577,7 +2577,6 @@ pthread_create(pthread_t *thread,
 {
 	fork_pthread *th;
 	void	   *ret;
-	instr_time	start_time;
 
 	th = (fork_pthread *) xmalloc(sizeof(fork_pthread));
 	if (pipe(th->pipes) < 0)