After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746512 - oggdemux: fix compiler warning
oggdemux: fix compiler warning
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Mac OS
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-20 08:40 UTC by Wonchul Lee
Modified: 2015-03-23 08:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
oggdemux: fix compiler warning (1.08 KB, patch)
2015-03-20 08:40 UTC, Wonchul Lee
none Details | Review
oggdemux: fix compiler warning (1.08 KB, patch)
2015-03-20 08:48 UTC, Wonchul Lee
committed Details | Review

Description Wonchul Lee 2015-03-20 08:40:43 UTC
Created attachment 299923 [details] [review]
oggdemux: fix compiler warning

Compiler warning format specifies type for printing debug log.
I am trying to compile it on osx, and It cause a build error.
So I fixed this compile warning.



gstoggdemux.c:1233:11: error: format specifies type 'long' but the argument has type 'ogg_int64_t' (aka 'long long') [-Werror,-Wformat]
          granule);
          ^~~~~~~
/Users/chul/work/github/jhbuild-gstreamer/install/include/gstreamer-1.0/gst/gstinfo.h:861:96: note: expanded from macro 'GST_DEBUG_OBJECT'
#define GST_DEBUG_OBJECT(obj,...)       GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG,   obj,  __VA_ARGS__)
                                                                                                     ^
/Users/chul/work/github/jhbuild-gstreamer/install/include/gstreamer-1.0/gst/gstinfo.h:541:31: note: expanded from macro 'GST_CAT_LEVEL_LOG'
        (GObject *) (object), __VA_ARGS__);                             \
                              ^
gstoggdemux.c:1255:15: error: format specifies type 'long' but the argument has type 'ogg_int64_t' (aka 'long long') [-Werror,-Wformat]
              duration);
              ^~~~~~~~
/Users/chul/work/github/jhbuild-gstreamer/install/include/gstreamer-1.0/gst/gstinfo.h:861:96: note: expanded from macro 'GST_DEBUG_OBJECT'
#define GST_DEBUG_OBJECT(obj,...)       GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG,   obj,  __VA_ARGS__)
                                                                                                     ^
/Users/chul/work/github/jhbuild-gstreamer/install/include/gstreamer-1.0/gst/gstinfo.h:541:31: note: expanded from macro 'GST_CAT_LEVEL_LOG'
        (GObject *) (object), __VA_ARGS__);                             \
                              ^
gstoggdemux.c:1262:15: error: format specifies type 'long' but the argument has type 'ogg_int64_t' (aka 'long long') [-Werror,-Wformat]
              granule);
              ^~~~~~~
/Users/chul/work/github/jhbuild-gstreamer/install/include/gstreamer-1.0/gst/gstinfo.h:860:95: note: expanded from macro 'GST_INFO_OBJECT'
#define GST_INFO_OBJECT(obj,...)        GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO,    obj,  __VA_ARGS__)
                                                                                                     ^
/Users/chul/work/github/jhbuild-gstreamer/install/include/gstreamer-1.0/gst/gstinfo.h:541:31: note: expanded from macro 'GST_CAT_LEVEL_LOG'
        (GObject *) (object), __VA_ARGS__);                             \
                              ^           \
Comment 1 Wonchul Lee 2015-03-20 08:48:12 UTC
Created attachment 299924 [details] [review]
oggdemux: fix compiler warning
Comment 2 Sebastian Dröge (slomo) 2015-03-23 08:15:46 UTC
commit b45941219e886eb23002bb3969081bdd60d85106
Author: Wonchul Lee <chul0812@gmail.com>
Date:   Fri Mar 20 17:45:03 2015 +0900

    oggdemux: Fix compiler warning
    
    gstoggdemux.c:1233:11: error: format specifies type 'long' but the argument has type 'ogg_int64_t' (aka 'long long') [-Werror,-Wformat]
              granule);
              ^~~~~~~
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746512