e17: bluez: don't mark used args as unused
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 16 Jun 2011 23:14:47 +0000 (23:14 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 16 Jun 2011 23:14:47 +0000 (23:14 +0000)
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

src/modules/bluez/e_mod_main.c

index e1b8c18..55ab69c 100644 (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;