From a3ff6aff618449255ca660e0fe7329c3668740bd Mon Sep 17 00:00:00 2001 From: Srivardhan Hebbar Date: Tue, 20 Oct 2015 12:24:49 -0700 Subject: [PATCH] ecore_x: removing useless assignment variable. Summary: Assigning to NULL has no effect in the function calling this. So changed it to void. Some compiler complain about this kind of construct. It is better to use the (void) construct for silencing unused parameter with different kind of configure option. Signed-off-by: Srivardhan Hebbar Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3180 Signed-off-by: Cedric BAIL --- src/lib/ecore_x/xlib/ecore_x_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_events.c b/src/lib/ecore_x/xlib/ecore_x_events.c index 48af12d3e8..a071d23a05 100644 --- a/src/lib/ecore_x/xlib/ecore_x_events.c +++ b/src/lib/ecore_x/xlib/ecore_x_events.c @@ -2120,7 +2120,7 @@ _ecore_x_event_handle_screensaver_notify(XEvent *xevent) e->time = screensaver_event->time; ecore_event_add(ECORE_X_EVENT_SCREENSAVER_NOTIFY, e, NULL, NULL); #else /* ifdef ECORE_XSS */ - xevent = NULL; + (void) xevent; #endif /* ifdef ECORE_XSS */ }