mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-08 04:41:31 +00:00
utils: Avoid using "type" as name for a variable and a macro argument in GST_BOILERPLATE
This caused "re-declaration" problems. ./clutter-gst-video-sink.c: In function ‘clutter_gst_video_sink_init_interfaces’: ./clutter-gst-video-sink.c:231:1: warning: declaration of ‘ClutterGstVideoSink’ shadows a global declaration [-Wshadow] ./clutter-gst-video-sink.h:64:44: warning: shadowed declaration is here [-Wshadow] https://bugzilla.gnome.org/show_bug.cgi?id=646531
This commit is contained in:
parent
38c07bac1d
commit
08e189badb
1 changed files with 3 additions and 3 deletions
|
@ -216,7 +216,7 @@ type_as_function ## _implements_interface_init (GstImplementsInterfaceClass *kla
|
|||
} \
|
||||
\
|
||||
static void \
|
||||
type_as_function ## _init_interfaces (GType type) \
|
||||
type_as_function ## _init_interfaces (GType type_var) \
|
||||
{ \
|
||||
static const GInterfaceInfo implements_iface_info = { \
|
||||
(GInterfaceInitFunc) type_as_function ## _implements_interface_init,\
|
||||
|
@ -229,9 +229,9 @@ type_as_function ## _init_interfaces (GType type) \
|
|||
NULL, \
|
||||
}; \
|
||||
\
|
||||
g_type_add_interface_static (type, GST_TYPE_IMPLEMENTS_INTERFACE, \
|
||||
g_type_add_interface_static (type_var, GST_TYPE_IMPLEMENTS_INTERFACE, \
|
||||
&implements_iface_info); \
|
||||
g_type_add_interface_static (type, interface_type_as_macro, \
|
||||
g_type_add_interface_static (type_var, interface_type_as_macro, \
|
||||
&iface_info); \
|
||||
} \
|
||||
\
|
||||
|
|
Loading…
Reference in a new issue