On 24/03/16 14:20, Chris Michael wrote: > devilhorns pushed a commit to branch master. > > http://git.enlightenment.org/core/enlightenment.git/commit/?id=59c0e7f5865064acf2339649f939de1c2a84ff23 > > commit 59c0e7f5865064acf2339649f939de1c2a84ff23 > Author: Chris Michael <[email protected]> > Date: Thu Mar 24 10:14:33 2016 -0400 > > add EINA_UNUSED for unused function parameter > > As the block which uses this parameter is #if 0'd out, we end up not > using this param, which generates a compiler warning > > Signed-off-by: Chris Michael <[email protected]> > --- > src/bin/e_xkb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/bin/e_xkb.c b/src/bin/e_xkb.c > index c9eec00..66bdad6 100644 > --- a/src/bin/e_xkb.c > +++ b/src/bin/e_xkb.c > @@ -33,7 +33,7 @@ _e_xkb_init_timer(void *data) > > #ifndef HAVE_WAYLAND_ONLY > static Eina_Bool > -_xkb_changed_state(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) > +_xkb_changed_state(void *data EINA_UNUSED, int type EINA_UNUSED, void *event > EINA_UNUSED) > { > if (_e_xkb_skip_events > 0) > { >
This is not the correct way of doing it. If a parameter is used in an #if, the correct thing would be to add an #else and then do something like: (void) event; To make the compiler ignore it. -- Tom ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
