From 33c9e876921457278f05a7200961a486afc4d504 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Wed, 9 Dec 2009 20:39:21 +0100 Subject: [PATCH] Remove static function declaration from header file --- src/actions.c | 10 +++++++--- src/actions.h | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/actions.c b/src/actions.c index 52b4fc97..c308ed04 100644 --- a/src/actions.c +++ b/src/actions.c @@ -91,6 +91,12 @@ static int compareTimes(Time t1, Time t2) return (diff < 60000) ? 1 : -1; } +#ifdef ANIMATIONS +static void shade_animate(WWindow *wwin, Bool what); +#else +static void shade_animate(WWindow *wwin, Bool what) { } +#endif + /* *---------------------------------------------------------------------- * wSetFocusTo-- @@ -1834,6 +1840,4 @@ static void shade_animate(WWindow *wwin, Bool what) break; } } -#else -static void shade_animate(WWindow *wwin, Bool what) { return; } -#endif /* ANIMATIONS */ +#endif diff --git a/src/actions.h b/src/actions.h index 8ad0c160..382cb213 100644 --- a/src/actions.h +++ b/src/actions.h @@ -39,7 +39,6 @@ int wKeyboardMoveResizeWindow(WWindow *wwin); void wMouseResizeWindow(WWindow *wwin, XEvent *ev); -static void shade_animate(WWindow *wwin, Bool what); void wShadeWindow(WWindow *wwin); void wUnshadeWindow(WWindow *wwin); -- 2.11.4.GIT