Move declaration to top of block

This fixes building with gcc2.  Reported by <https://github.com/fbrosson>.
This commit is contained in:
Kevin Easton
2018-11-11 01:27:09 +11:00
parent fe22025c01
commit 076850f81b

View File

@@ -872,8 +872,8 @@ static char *status_notify_windows(Window *window)
if (get_int_var(SHOW_STATUS_ALL_VAR) || window == window->screen->current_window) if (get_int_var(SHOW_STATUS_ALL_VAR) || window == window->screen->current_window)
{ {
*notes = 0;
Window *notify_win = NULL; Window *notify_win = NULL;
*notes = 0;
while ((traverse_all_windows(&notify_win))) while ((traverse_all_windows(&notify_win)))
{ {
if (notify_win->miscflags & WINDOW_NOTIFIED) if (notify_win->miscflags & WINDOW_NOTIFIED)