From 6b9e47e67cf05503d65194b05d1e3e424bc3ef73 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 4 Oct 2011 11:35:03 +0000 Subject: Define call_data to 0 in NotifyScroll() Fixes gcc warning: Scrollbar.c: In function 'NotifyScroll': Scrollbar.c:950:12: warning: 'call_data' may be used uninitialized in this function [-Wuninitialized] Reviewed-by: Matt Turner Signed-off-by: Guillem Jover --- src/Scrollbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scrollbar.c b/src/Scrollbar.c index 429a660..be74ed3 100644 --- a/src/Scrollbar.c +++ b/src/Scrollbar.c @@ -922,7 +922,7 @@ static void NotifyScroll (Widget w, XEvent *event, String *params, Cardinal *num_params) { ScrollbarWidget sbw = (ScrollbarWidget) w; - intptr_t call_data; + intptr_t call_data = 0; char style; Position x, y; -- cgit v1.2.3