diff --git a/src/common/slurm_protocol_socket_implementation.c b/src/common/slurm_protocol_socket_implementation.c
index 7a08955ccab052416763da14989b9a9e97ca2a12..7fe680ddc09f3a0b0aa95a4c86e23b75194e68d2 100644
--- a/src/common/slurm_protocol_socket_implementation.c
+++ b/src/common/slurm_protocol_socket_implementation.c
@@ -712,7 +712,6 @@ extern int _slurm_fcntl(int fd, int cmd, ... )
 extern int _slurm_vfcntl(int fd, int cmd, va_list va )
 {
 	long arg ;
-	struct flock *lock ;
 
 	switch ( cmd )
 	{