forked from jengelh/libcamera
Accepting request 1071081 from graphics
OBS-URL: https://build.opensuse.org/request/show/1071081 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcamera?expand=0&rev=17
This commit is contained in:
commit
ec7170881e
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 13 08:48:30 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Disable warning in silent-Werror_dangling-reference.patch based
|
||||||
|
compiler version.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
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
|
Source: %name-%version.tar.xz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
Patch0: silent-Werror_dangling-reference.patch
|
||||||
|
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
BuildRequires: c++_compiler
|
BuildRequires: c++_compiler
|
||||||
|
21
silent-Werror_dangling-reference.patch
Normal file
21
silent-Werror_dangling-reference.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
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());
|
Loading…
x
Reference in New Issue
Block a user