Warning while compiling dbus 0.34
John (J5) Palmieri
johnp at redhat.com
Tue Jul 12 01:40:28 EST 2005
That is just the Pyrex python module generator being stupid. I brought
up these issues with the upstream maintainers and their response was,
"it would complicate the code too much to fix the issues". The lvalue
warnings however have been fixed (they used to be errors or at least
error out on fedora's gcc). You can grab the patch from the fedora RPM
of Pyrex if you want. It should be showing up when they do the next
release of Pyrex upstream hopefully.
On Sat, 2005-07-09 at 16:03 +0000, madan m raj wrote:
> Hi,
> I use Python 2.4.1 and gcc version 3.4.2 20041017 (Red Hat
> 3.4.2-6.fc3)
> While compiling dbus 0.34 i get these warnings. Any fix to avoid this.
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../dbus
> -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include
> -I/opt/gnome2/include/python2.4 -DDBUS_COMPIL ATION=1
> -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/usr/kerberos/include
> -I/opt/gtk/includ e -g -O2 -Wall -Wchar-subscripts
> -Wmissing-declarations -Wmissing-prototypes -Wn ested-externs
> -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus
> _bindings.lo -MD -MP -MF .deps/dbus_bindings.Tpo -c dbus_bindings.c
> -fPIC -DPIC -o .libs/dbus_bindings.o
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_cunregister_function_handl er':
> dbus_bindings.c:1001: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1045: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_cmessage_function_handler' :
> dbus_bindings.c:1095: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1096: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1146: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1159: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection__set_conn':
> dbus_bindings.c:1355: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection__get_conn':
> dbus_bindings.c:1372: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_setup_with_g_ main':
> dbus_bindings.c:1422: warning: implicit declaration of function
> `dbus_connection _setup_with_g_main'
> dbus_bindings.c:1422: warning: nested extern declaration of
> `dbus_connection_set up_with_g_main'
> dbus_bindings.c:1426: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_disconnect':
> dbus_bindings.c:1446: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_flush':
> dbus_bindings.c:1516: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_borrow_messag e':
> dbus_bindings.c:1535: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1548: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_pop_message':
> dbus_bindings.c:1643: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1663: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1677: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_send_with_rep ly':
> dbus_bindings.c:1942: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1983: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:1996: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_send_with_rep ly_and_block':
> dbus_bindings.c:2049: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:2101: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_set_watch_fun ctions':
> dbus_bindings.c:2146: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_set_timeout_f unctions':
> dbus_bindings.c:2174: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_set_wakeup_ma in_function':
> dbus_bindings.c:2200: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_set_data':
> dbus_bindings.c:2282: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_get_data':
> dbus_bindings.c:2305: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection_list_register ed':
> dbus_bindings.c:2634: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c:2659: warning: label `__pyx_L4' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings__pending_call_notification ':
> dbus_bindings.c:2705: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:2739: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings__pending_call_free_user_da ta':
> dbus_bindings.c:2880: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11PendingCall___cinit__':
> dbus_bindings.c:2931: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11PendingCall__get_pending _call':
> dbus_bindings.c:2946: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11PendingCall_cancel':
> dbus_bindings.c:2965: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11PendingCall_get_reply':
> dbus_bindings.c:3009: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:3022: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11PendingCall_block':
> dbus_bindings.c:3060: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_5Watch___init__':
> dbus_bindings.c:3123: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_5Watch___cinit__':
> dbus_bindings.c:3140: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter___cinit__':
> dbus_bindings.c:3286: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter__get_iter':
> dbus_bindings.c:3303: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_get_dict':
> dbus_bindings.c:4234: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4257: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4282: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c:4387: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_get_array':
> dbus_bindings.c:4437: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4460: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4485: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c:4554: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_get_variant' :
> dbus_bindings.c:4592: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4612: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_get_struct':
> dbus_bindings.c:4659: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4681: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:4696: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c:4737: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_python_value _to_dbus_sig':
> dbus_bindings.c:5166: warning: label `__pyx_L4' defined but not used
> dbus_bindings.c:5192: warning: label `__pyx_L5' defined but not used
> dbus_bindings.c:5884: warning: label `__pyx_L6' defined but not used
> dbus_bindings.c:5910: warning: label `__pyx_L7' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_append_dict' :
> dbus_bindings.c:7301: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7302: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7425: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7467: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7435: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c:7497: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_append_struc t':
> dbus_bindings.c:7543: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7567: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7577: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c:7612: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter_append_array ':
> dbus_bindings.c:7659: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7701: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7723: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c:7758: warning: label `__pyx_L3' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_11MessageIter___str__':
> dbus_bindings.c:7843: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:8171: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:7866: warning: label `__pyx_L2' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_7Message__set_msg':
> dbus_bindings.c:8776: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_7Message__get_msg':
> dbus_bindings.c:8793: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_7Message_get_iter':
> dbus_bindings.c:8815: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:8844: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_7Message_get_args_list':
> dbus_bindings.c:8964: warning: label `__pyx_L4' defined but not used
> dbus_bindings.c:8993: warning: label `__pyx_L5' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_7Message_get_sender':
> dbus_bindings.c:9359: warning: assignment discards qualifiers from
> pointer targe t type
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_6Server_setup_with_g_main' :
> dbus_bindings.c:9963: warning: implicit declaration of function
> `dbus_server_set up_with_g_main'
> dbus_bindings.c:9963: warning: nested extern declaration of
> `dbus_server_setup_w ith_g_main'
> dbus_bindings.c:9967: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_6Server_disconnect':
> dbus_bindings.c:9987: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function `__pyx_f_13dbus_bindings_bus_get':
> dbus_bindings.c:10034: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c:10064: warning: use of cast expressions as lvalues is
> deprecated
> dbus_bindings.c: In function `__pyx_f_13dbus_bindings_init_gthreads':
> dbus_bindings.c:10550: warning: label `__pyx_L1' defined but not used
> dbus_bindings.c: In function
> `__pyx_tp_dealloc_13dbus_bindings_Connection':
> dbus_bindings.c:10785: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_traverse_13dbus_bindings_Connection':
> dbus_bindings.c:10790: warning: unused variable `e'
> dbus_bindings.c:10791: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_clear_13dbus_bindings_Connection':
> dbus_bindings.c:10796: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_dealloc_13dbus_bindings_Message':
> dbus_bindings.c:10959: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_traverse_13dbus_bindings_Message':
> dbus_bindings.c:10964: warning: unused variable `e'
> dbus_bindings.c:10965: warning: unused variable `p'
> dbus_bindings.c: In function `__pyx_tp_clear_13dbus_bindings_Message':
> dbus_bindings.c:10970: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_dealloc_13dbus_bindings_PendingCall':
> dbus_bindings.c:11129: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_traverse_13dbus_bindings_PendingCall':
> dbus_bindings.c:11134: warning: unused variable `e'
> dbus_bindings.c:11135: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_clear_13dbus_bindings_PendingCall':
> dbus_bindings.c:11140: warning: unused variable `p'
> dbus_bindings.c: In function `__pyx_tp_dealloc_13dbus_bindings_Watch':
> dbus_bindings.c:11278: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_traverse_13dbus_bindings_Watch':
> dbus_bindings.c:11283: warning: unused variable `e'
> dbus_bindings.c:11284: warning: unused variable `p'
> dbus_bindings.c: In function `__pyx_tp_clear_13dbus_bindings_Watch':
> dbus_bindings.c:11289: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_dealloc_13dbus_bindings_MessageIter':
> dbus_bindings.c:11425: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_traverse_13dbus_bindings_MessageIter':
> dbus_bindings.c:11430: warning: unused variable `e'
> dbus_bindings.c:11431: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_clear_13dbus_bindings_MessageIter':
> dbus_bindings.c:11436: warning: unused variable `p'
> dbus_bindings.c: In function `__pyx_tp_new_13dbus_bindings_Server':
> dbus_bindings.c:11600: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_dealloc_13dbus_bindings_Server':
> dbus_bindings.c:11605: warning: unused variable `p'
> dbus_bindings.c: In function
> `__pyx_tp_traverse_13dbus_bindings_Server':
> dbus_bindings.c:11610: warning: unused variable `e'
> dbus_bindings.c:11611: warning: unused variable `p'
> dbus_bindings.c: In function `__pyx_tp_clear_13dbus_bindings_Server':
> dbus_bindings.c:11616: warning: unused variable `p'
> dbus_bindings.c: In function `initdbus_bindings':
> dbus_bindings.c:11798: warning: dereferencing type-punned pointer will
> break str ict-aliasing rules
> dbus_bindings.c:11805: warning: dereferencing type-punned pointer will
> break str ict-aliasing rules
> dbus_bindings.c:11812: warning: dereferencing type-punned pointer will
> break str ict-aliasing rules
> dbus_bindings.c:11818: warning: dereferencing type-punned pointer will
> break str ict-aliasing rules
> dbus_bindings.c:11825: warning: dereferencing type-punned pointer will
> break str ict-aliasing rules
> dbus_bindings.c:11828: warning: dereferencing type-punned pointer will
> break str ict-aliasing rules
> dbus_bindings.c:12173: warning: assignment from incompatible pointer
> type
> dbus_bindings.c:12183: warning: assignment from incompatible pointer
> type
> dbus_bindings.c:12446: warning: assignment from incompatible pointer
> type
> dbus_bindings.c:12451: warning: assignment from incompatible pointer
> type
> dbus_bindings.c: In function `__Pyx_EndUnpack':
> dbus_bindings.c:12686: warning: suggest parentheses around assignment
> used as tr uth value
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_cmessage_function_handler' :
> dbus_bindings.c:1089: warning: '__pyx_r' might be used uninitialized
> in this fun ction
> dbus_bindings.c: In function
> `__pyx_f_13dbus_bindings_10Connection___init__':
> dbus_bindings.c:1225: warning: '__pyx_v_c_address' might be used
> uninitialized in this function
> dbus_bindings.c: At top level:
> dbus_bindings.c:17: warning: '__Pyx_PrintItem' declared `static' but
> never defined
> dbus_bindings.c:18: warning: '__Pyx_PrintNewline' declared `static'
> but never defined
> dbus_bindings.c:20: warning: '__Pyx_ReRaise' declared `static' but
> never defined
> dbus_bindings.c:21: warning: '__Pyx_Import' declared `static' but
> never defined
> dbus_bindings.c:25: warning: '__Pyx_GetStarArgs' declared `static' but
> never defined
> dbus_bindings.c:28: warning: '__Pyx_ImportType' declared `static' but
> never defined
> dbus_bindings.c:30: warning: '__Pyx_GetVtable' declared `static' but
> never defined
>
> Thanks
> Madhan Raj M
>
>
>
>
--
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus
mailing list