GNOME Bugzilla – Bug 646531
GST_BOILERPLATE: don't use "type" as both a variable name and a macro argument
Last modified: 2011-04-02 14:22:04 UTC
Caused warnings when used.
Created attachment 184943 [details] [review] utils: Avoid using a type name as variable name 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]
Oops :) Pushed, thanks: commit 08e189badbeffcce1ee9addbdee7023b676ce6c7 Author: Bastien Nocera <hadess@hadess.net> Date: Sat Apr 2 14:51:18 2011 +0100 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