--- a/libopagent/opagent.c
+++ b/libopagent/opagent.c
@@ -130,7 +130,6 @@
 	int pad_cnt;
 	char dump_path[PATH_MAX];
 	char err_msg[PATH_MAX + 16];
-	struct stat dirstat;
 	int rc;
 	struct jitheader header;
 	int fd;