Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libcamera for openSUSE:Factory 
checked in at 2023-03-14 18:15:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcamera (Old)
 and      /work/SRC/openSUSE:Factory/.libcamera.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcamera"

Tue Mar 14 18:15:39 2023 rev:17 rq:1071081 version:0.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcamera/libcamera.changes      2023-02-07 
18:48:33.866963779 +0100
+++ /work/SRC/openSUSE:Factory/.libcamera.new.31432/libcamera.changes   
2023-03-14 18:15:42.631432202 +0100
@@ -1,0 +2,12 @@
+Mon Mar 13 08:48:30 UTC 2023 - Martin Liška <mli...@suse.cz>
+
+- Disable warning in silent-Werror_dangling-reference.patch based
+  compiler version.
+
+-------------------------------------------------------------------
+Wed Mar  8 09:21:29 UTC 2023 - Martin Liška <mli...@suse.cz>
+
+- Add silent-Werror_dangling-reference.patch that addressed a false-positive
+  warning in GCC: https://bugs.libcamera.org/show_bug.cgi?id=185.
+
+-------------------------------------------------------------------

New:
----
  silent-Werror_dangling-reference.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libcamera.spec ++++++
--- /var/tmp/diff_new_pack.ET1pWI/_old  2023-03-14 18:15:44.387441588 +0100
+++ /var/tmp/diff_new_pack.ET1pWI/_new  2023-03-14 18:15:44.395441631 +0100
@@ -28,6 +28,7 @@
 
 Source:         %name-%version.tar.xz
 Source1:        baselibs.conf
+Patch0:         silent-Werror_dangling-reference.patch
 
 BuildRequires:  boost-devel
 BuildRequires:  c++_compiler

++++++ silent-Werror_dangling-reference.patch ++++++
diff --git a/src/apps/cam/file_sink.cpp b/src/apps/cam/file_sink.cpp
index b32aad24..9a543dc1 100644
--- a/src/apps/cam/file_sink.cpp
+++ b/src/apps/cam/file_sink.cpp
@@ -114,7 +114,16 @@ void FileSink::writeBuffer(const Stream *stream, 
FrameBuffer *buffer,
        }
 
        for (unsigned int i = 0; i < buffer->planes().size(); ++i) {
+
+#if __GNUC__ >= 13
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdangling-reference"
+#endif
+
                const FrameMetadata::Plane &meta = 
buffer->metadata().planes()[i];
+#if __GNUC__ >= 13
+#pragma GCC diagnostic pop
+#endif
 
                Span<uint8_t> data = image->data(i);
                unsigned int length = std::min<unsigned int>(meta.bytesused, 
data.size());

Reply via email to