forked from pool/libcamera
Accepting request 1071073 from home:marxin:branches:graphics
- Disable warning in silent-Werror_dangling-reference.patch based compiler version. OBS-URL: https://build.opensuse.org/request/show/1071073 OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=39
This commit is contained in:
parent
b5bf0ca046
commit
34258b2447
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@ -1,15 +1,21 @@
|
||||
diff --git a/src/apps/cam/file_sink.cpp b/src/apps/cam/file_sink.cpp
|
||||
index b32aad24..5fb07526 100644
|
||||
index b32aad24..9a543dc1 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,
|
||||
@@ -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…
Reference in New Issue
Block a user