[Bug 754756] directsoundsrc: Compiler warning with 64bit Windows MinGW, cast from pointer to integer of different size

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Sep 9 06:58:27 PDT 2015


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

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.5.91

--- Comment #4 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
commit 21bfa428d1f6cd84aa5b2da0eef047d3130babe2
Author: Kouhei Sutou <kou at clear-code.com>
Date:   Wed Sep 9 13:58:05 2015 +0900

    directsoundsrc: fix build error for 64bit Windows build by MinGW

    Casting to UINT from HMIXER generates the following warning with
    64bit Windows target MinGW:

        gstdirectsoundsrc.c: In function 'gst_directsound_src_mixer_find':
        gstdirectsoundsrc.c:733:30: error: cast from pointer to integer of
different size [-Werror=pointer-to-int-cast]
             mmres = mixerGetDevCaps ((UINT) dsoundsrc->mixer,
                                      ^
        cc1: all warnings being treated as errors

    We can use portable GPOINTER_TO_UINT() macro for this propose.

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

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