diff --git a/rcfile.c b/rcfile.c
index 3fa012d872f8be29f14e98930e590f82da47f187..f1fee956d58e925d1d16378c414d00469cf564b7 100644
--- a/rcfile.c
+++ b/rcfile.c
@@ -432,7 +432,6 @@ void do_rcfile(void)
 {
     char *unable = _("Unable to open ~/.nanorc file, %s");
     struct stat fileinfo;
-    int skip=0;
     FILE *rcstream;
 
     if (getenv("HOME") == NULL)