From 95aa04c78fcb0a3c90fd4edbaf4699e60481d696 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 26 Jan 2022 11:12:34 +0530 Subject: [PATCH] videoaggregator: Remove extra semicolon in macro usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is usually necessary to allow gst-indent to treat it as a statement, but we do not run gst-indent on headers and we do not have extra semicolons in other places that this macro is used in the header. Fixes warnings when using the header: ``` In file included from gstreamer/subprojects/gst-plugins-base/gst-libs/gst/video/video.h:185, from XYZ:9001: gstreamer/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h:206:78: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] 206 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregatorConvertPad, gst_object_unref); | ^ gstreamer/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h:214:181: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] 214 | G_DECLARE_DERIVABLE_TYPE (GstVideoAggregatorParallelConvertPad, gst_video_aggregator_parallel_convert_pad, GST, VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD, GstVideoAggregatorConvertPad); | ^ ``` Part-of: --- .../gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h index 52afd00e53..368c723e8e 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.h @@ -203,7 +203,7 @@ GType gst_video_aggregator_convert_pad_get_type (void); GST_VIDEO_API void gst_video_aggregator_convert_pad_update_conversion_info (GstVideoAggregatorConvertPad * pad); -G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregatorConvertPad, gst_object_unref); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregatorConvertPad, gst_object_unref) /**************************************** * GstVideoAggregatorParallelConvertPad * @@ -211,7 +211,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregatorConvertPad, gst_object_unref); #define GST_TYPE_VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD (gst_video_aggregator_parallel_convert_pad_get_type()) GST_VIDEO_API -G_DECLARE_DERIVABLE_TYPE (GstVideoAggregatorParallelConvertPad, gst_video_aggregator_parallel_convert_pad, GST, VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD, GstVideoAggregatorConvertPad); +G_DECLARE_DERIVABLE_TYPE (GstVideoAggregatorParallelConvertPad, gst_video_aggregator_parallel_convert_pad, GST, VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD, GstVideoAggregatorConvertPad) #define GST_VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD, GstVideoAggregatorParallelConvertPad)) #define GST_VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_AGGREGATOR_PARALLEL_CONVERT_PAD, GstVideoAggregatorConvertPadClass))