From 53d34e6af9b7f0a8a79f00f6690853d7a29fa170 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 16 Jun 2011 23:14:47 +0000 Subject: [PATCH] e17: bluez: don't mark used args as unused Don't mark used args with __UNUSED__ attribute. GCC may optmize calls and bad things will happen. This should fix the following crash: #0 0x00007fc94c7dc8f8 in poll () from /lib/libc.so.6 #1 0x00007fc94b025ba2 in ?? () from /usr/lib/libxcb.so.1 #2 0x00007fc94b02702f in xcb_wait_for_event () from /usr/lib/libxcb.so.1 #3 0x00007fc94d35a7c8 in _XReadEvents () from /usr/lib/libX11.so.6 #4 0x00007fc94d348cc8 in XNextEvent () from /usr/lib/libX11.so.6 #5 0x000000000043f6eb in e_alert_show () #6 0x000000000050a7ad in e_sigseg_act () #7 #8 0x0000000000528218 in _queue_append () #9 0x0000000000528612 in e_widget_ilist_append () #10 0x00007fc94542eb7b in _bluez_event_devicefound () from /home/lucas/dev/e/lib/enlightenment/modules/bluez/linux-gnu-x86_64-ver-pre-svn-08/module.so #11 0x00007fc94f747401 in _ecore_event_call () from /home/lucas/dev/e/lib/libecore.so.1 #12 0x00007fc94f74b58e in _ecore_main_loop_iterate_internal () from /home/lucas/dev/e/lib/libecore.so.1 #13 0x00007fc94f74b79f in ecore_main_loop_begin () from /home/lucas/dev/e/lib/libecore.so.1 #14 0x0000000000433901 in main () SVN revision: 60412 --- src/modules/bluez/e_mod_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluez/e_mod_main.c b/src/modules/bluez/e_mod_main.c index e1b8c185e..55ab69cc7 100644 --- a/src/modules/bluez/e_mod_main.c +++ b/src/modules/bluez/e_mod_main.c @@ -575,7 +575,7 @@ _bluez_popup_device_selected(void *data) static Eina_Bool _bluez_event_devicefound(void *data, int type __UNUSED__, - void *event __UNUSED__) + void *event) { E_Bluez_Module_Context *ctxt = data; E_Bluez_Device_Found *device = event;