From 1b74f039abae694f1f58ccd53f6fbc211df83906 Mon Sep 17 00:00:00 2001 From: Marvin Schmidt Date: Wed, 28 Feb 2024 16:51:37 +0100 Subject: [PATCH] allocators: drmdumb: Remove extra semicolon after G_DECLARE_FINAL_TYPE The `G_DECLARE_FINAL_TYPE` macro does not need to be terminated with a semicolon and the extra semicolon breaks building e.g. libcamera with clang because `-Wextra-semi` is used which produces the following error in conjunction with `-Werror`: ``` gstreamer-1.0/gst/allocators/gstdrmdumb.h:61:43: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 61 | GST, DRM_DUMB_ALLOCATOR, GstAllocator); | ^ 1 error generated. ``` Fix this by removing the extra semicolon Part-of: --- .../gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h b/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h index fa5f5eda5f..5c848e628b 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h @@ -58,7 +58,7 @@ G_BEGIN_DECLS #define GST_TYPE_DRM_DUMB_ALLOCATOR gst_drm_dumb_allocator_get_type () GST_ALLOCATORS_API G_DECLARE_FINAL_TYPE (GstDRMDumbAllocator, gst_drm_dumb_allocator, - GST, DRM_DUMB_ALLOCATOR, GstAllocator); + GST, DRM_DUMB_ALLOCATOR, GstAllocator) GST_ALLOCATORS_API gboolean gst_is_drm_dumb_memory (GstMemory * mem);