[Bug 645595] bytereader, bytewriter: fix warnings when using inline functions with g++

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Mar 23 13:56:09 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=645595
  GStreamer | gstreamer (core) | git

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.33
            Summary|[bytereader/writer] missing |bytereader, bytewriter: fix
                   |casts                       |warnings when using inline
                   |                            |functions with g++

--- Comment #5 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2011-03-23 20:56:05 UTC ---
Since it's a trivial patch, I took the liberty of just cherry-picking the one I
had already instead of applying yours (less work, I'm lazy). Hope you don't
mind..

 commit f9558b163fab74d97a747823d2abede31f343871
 Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
 Date:   Sat Mar 12 17:01:39 2011 +0000

    tests: add libscpp unit test to make sure g++ likes our library headers

 commit 5300a5e73b1c20958e3a348003e750d5be50930c
 Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
 Date:   Sat Mar 12 16:58:01 2011 +0000

    bytereader, bytewriter: fix up inline functions to make g++ happy

    gstbytereader.h: In function ‘guint8*
gst_byte_reader_dup_data_unchecked(GstByteReader*, guint)’:
    gstbytereader.h:249:75: error: invalid conversion from ‘void*’ to ‘guint8*’
    gstbytewriter.h: In function ‘gboolean
_gst_byte_writer_ensure_free_space_inline(GstByteWriter*, guint)’:
    gstbytewriter.h:196:75: error: invalid conversion from ‘void*’ to ‘guint8*’

    https://bugzilla.gnome.org/show_bug.cgi?id=645595

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list