forked from jengelh/libcamera
Accepting request 1070110 from home:marxin:branches:graphics
- Add silent-Werror_dangling-reference.patch that addressed a false-positive warning in GCC: https://bugs.libcamera.org/show_bug.cgi?id=185. OBS-URL: https://build.opensuse.org/request/show/1070110 OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=38
This commit is contained in:
parent
6e77a3317c
commit
b5bf0ca046
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 8 09:21:29 UTC 2023 - Martin Liška <mliska@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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 6 10:08:27 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
|
@ -28,6 +28,7 @@ URL: http://libcamera.org/
|
||||
|
||||
Source: %name-%version.tar.xz
|
||||
Source1: baselibs.conf
|
||||
Patch0: silent-Werror_dangling-reference.patch
|
||||
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: c++_compiler
|
||||
|
15
silent-Werror_dangling-reference.patch
Normal file
15
silent-Werror_dangling-reference.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/src/apps/cam/file_sink.cpp b/src/apps/cam/file_sink.cpp
|
||||
index b32aad24..5fb07526 100644
|
||||
--- a/src/apps/cam/file_sink.cpp
|
||||
+++ b/src/apps/cam/file_sink.cpp
|
||||
@@ -114,7 +114,10 @@ void FileSink::writeBuffer(const Stream *stream, FrameBuffer *buffer,
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < buffer->planes().size(); ++i) {
|
||||
+#pragma GCC diagnostic push
|
||||
+#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||
const FrameMetadata::Plane &meta = buffer->metadata().planes()[i];
|
||||
+#pragma GCC diagnostic pop
|
||||
|
||||
Span<uint8_t> data = image->data(i);
|
||||
unsigned int length = std::min<unsigned int>(meta.bytesused, data.size());
|
Loading…
Reference in New Issue
Block a user