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 data = image->data(i); unsigned int length = std::min(meta.bytesused, data.size());