allocators: drmdumb: Remove extra semicolon after G_DECLARE_FINAL_TYPE
authorMarvin Schmidt <marv@exherbo.org>
Wed, 28 Feb 2024 15:51:37 +0000 (16:51 +0100)
committerMarvin Schmidt <marv@exherbo.org>
Wed, 28 Feb 2024 22:56:53 +0000 (23:56 +0100)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6239>

subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h

index fa5f5eda5fd16af5f2c48759007e87cb3a2c8c7b..5c848e628b8abadecc9fb042271b62909b39cbb5 100644 (file)
@@ -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);