[Bug 699008] Fix printf format compiler warning

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Aug 20 07:13:42 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=699008
  GStreamer | gst-omx | git

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1

--- Comment #6 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2013-08-20 14:13:33 UTC ---
Ok, so just for the record: gcc will actually warn in some cases even if the
size of the type is the same on the system as the type size_t, meaning we can't
use the 'z' modifier. (I wasn't sure if it would only warn if the size actually
differs, in which case we'd been okay because glib will typedef the right
thing).

Tested on x86: sizeof(): int=4,long=4,size=4,int64=8
gst/gst.c:72:3: error: format ‘%zd’ expects argument of type ‘signed size_t’,
but argument 8 has type ‘glong’:
   GST_ERROR ("size=%zd", v_long);

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