]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfns.c (x_default_scroll_bar_color_parameter):
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Sep 2014 16:49:10 +0000 (09:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Sep 2014 16:49:10 +0000 (09:49 -0700)
Use USE_LOCAL_ALLOCA only if USE_TOOLKIT_SCROLL_BARS,
to pacify --enable-gcc-warnings in non-scrollbar builds.

src/ChangeLog
src/xfns.c

index 526d2058b51a5f7e1bf91467142080c51116266e..b866977a7ce2cd535fa2abb560a50bd5843347f6 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xfns.c (x_default_scroll_bar_color_parameter):
+       Use USE_LOCAL_ALLOCA only if USE_TOOLKIT_SCROLL_BARS,
+       to pacify --enable-gcc-warnings in non-scrollbar builds.
+
 2014-09-26  Ken Brown  <kbrown@cornell.edu>
 
        * w32term.h (ALIGN_STACK): Fix the cpp condition.
index 9d217cdb4d973a94e9e0b6900d16e0a55c100ad6..d6e4b7bf5cad5cb8115114ac278ca510f7b8ed75 100644 (file)
@@ -1559,7 +1559,9 @@ x_default_scroll_bar_color_parameter (struct frame *f,
                                      const char *xprop, const char *xclass,
                                      int foreground_p)
 {
+#ifdef USE_TOOLKIT_SCROLL_BARS
   USE_LOCAL_ALLOCA;
+#endif
   struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f);
   Lisp_Object tem;