Add a few #ifdefs to exclude functions that are not used. (Domnique Pelle)
diff --git a/src/gui.c b/src/gui.c
index fab312f..33f7844 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3908,6 +3908,7 @@
  * Scrollbar stuff:
  */
 
+#if defined(FEAT_AUTOCMD) || defined(FEAT_WINDOWS) || defined(PROTO)
 /*
  * Called when something in the window layout has changed.
  */
@@ -3922,6 +3923,7 @@
     }
     need_mouse_correct = TRUE;
 }
+#endif
 
     void
 gui_update_scrollbars(force)