[gstreamer-bugs] [Bug 492086] New: Include files for GStreamer and its plugins need to be compilable with -Wshadow
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Wed Oct 31 06:55:14 PDT 2007
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=492086
GStreamer | gstreamer (core) | Ver: HEAD CVS
Summary: Include files for GStreamer and its plugins need to be
compilable with -Wshadow
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: minor
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: pkj at axis.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unversioned Enhancement
GNOME milestone: Unspecified
Please describe the problem:
We use -Wshadow by default for all of our own code. When including header files
from GStreamer, e.g., gst/gst.h, there are numerous warnings regarding shadowed
variable names. So much so that the use of -Wshadow is more or less prevented
by the GStreamer include files.
These warning mainly concerns variable names such as index, clock, time, link
and unlink which all have a corresponding function in the standard C library
which is then shadowed.
Steps to reproduce:
Compile any code which includes gst/gst.h with -Wshadow.
Actual results:
Numerous warnings regarding shadowed variables are produced.
Expected results:
A compilation without warnings.
Does this happen every time?
Yes
Other information:
We are using gcc 3.2.1 and gcc 3.4.4.
--
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=492086.
More information about the Gstreamer-bugs
mailing list