GNOME Bugzilla – Bug 664491
compiler warnings on OS X 64bit
Last modified: 2012-02-19 12:48:32 UTC
Created attachment 201838 [details] [review] Fixes the build Build fails because of warnings
I've pushed the bits that Wim hasn't fixed yet: commit 6ea74a05722586af5f83429e5255e557282a103c Author: Matej Knopp <matej.knopp@gmail.com> Date: Mon Nov 21 18:56:19 2011 +0100 Fix printf format compiler warnings on OSX/64bit https://bugzilla.gnome.org/show_bug.cgi?id=664491 but not the GstAdapter changes, which don't look quite right. What are the exact warnings you get where because of those?
These are the warnings I get gstadapter.h:82: warning: type qualifiers ignored on function return type gstadapter.c:412: warning: type qualifiers ignored on function return type The warning vanishes when I change const gpointer to gconstpointer. What is wrong with gconstpointer?
The above warning ( type qualifiers ignored on function return type ) is caused by the following line const gpointer gst_adapter_map (GstAdapter * adapter, gsize size) according to [1] "const gpointer" is not the same as gconstpointer or const void *. [1] http://old.nabble.com/-Bug-c-35928---New:-type-qualifiers-ignored-on-function-return-type-td16670737.html
I read the diff the wrong way around, sorry ('t was late). commit f33b1397d390c625d21eebbf39c03ffacce1b085 Author: Matej Knopp <matej.knopp@gmail.com> Date: Mon Nov 21 18:56:19 2011 +0100 adapter: fix return type of _map() to gconstpointer Fixes compiler warnings on OSX: gstadapter.h:82: warning: type qualifiers ignored on function return type gstadapter.c:412: warning: type qualifiers ignored on function return type const gpointer is not the same as gconstpointer or const void *. https://bugzilla.gnome.org/show_bug.cgi?id=664491
Created attachment 206168 [details] [review] another once
commit 7b16febb0d8a7f218dc91065fdbf51fcd268f9c5 Author: Matej Knopp <matej.knopp@gmail.com> Date: Thu Jan 26 03:02:48 2012 -0500 nettimepacket: fix printf format warning in debug message https://bugzilla.gnome.org/show_bug.cgi?id=664491