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  <signal handler called>
#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
This commit is contained in:
Lucas De Marchi 2011-06-16 23:14:47 +00:00
parent 8001665c3d
commit 53d34e6af9
1 changed files with 1 additions and 1 deletions

View File

@ -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;