diff --git a/src/ChangeLog b/src/ChangeLog index 526d2058b51..b866977a7ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2014-09-26 Paul Eggert + + * 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 * w32term.h (ALIGN_STACK): Fix the cpp condition. diff --git a/src/xfns.c b/src/xfns.c index 9d217cdb4d9..d6e4b7bf5ca 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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;