[gstreamer-bugs] [Bug 579070] New: warnings in sunaudio

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Apr 15 09:43:43 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=579070

  GStreamer | gst-plugins-good | Ver: git
           Summary: warnings in sunaudio
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: opensolaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: trs80 at ucc.gu.uwa.edu.au
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: zanchey at ucc.gu.uwa.edu.au
     GNOME version: 2.27/2.28
   GNOME milestone: Unspecified


There's some unused variables in gstsunaudiomixerctrl.c and gstsunaudiosink.c
that break compilation with -Wall -Werror. There's also these warnings that I'm
not sure how to get rid of:
gstsunaudiomixerctrl.c: In function `gst_sunaudiomixer_ctrl_get_volume':
gstsunaudiomixerctrl.c:179: warning: 'gain' might be used uninitialized in this
function
gstsunaudiomixerctrl.c:179: warning: 'balance' might be used uninitialized in
this function
The code in question is:
  gint gain, balance;
[stuff, doesn't touch gain or balance]
  switch (sunaudiotrack->track_num) {
    case GST_SUNAUDIO_TRACK_OUTPUT:
      gain = (int) audioinfo.play.gain;
      balance = audioinfo.play.balance;
      break;
    case GST_SUNAUDIO_TRACK_LINE_IN:
      gain = (int) audioinfo.record.gain;
      balance = audioinfo.record.balance;
      break;
    case GST_SUNAUDIO_TRACK_MONITOR:
      gain = (int) audioinfo.monitor_gain;
      balance = audioinfo.record.balance;
      break;
  }
so I guess because there's no default case gcc complains.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=579070.




More information about the Gstreamer-bugs mailing list