summaryrefslogtreecommitdiff
path: root/src/android/mm/cros_camera_buffer.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-01 01:14:01 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-01 12:13:07 +0300
commita931188e1de2c7663ff6c516141eb714c2a5dd8e (patch)
tree17ed9c70185c626fe94f137482aa3b2cfa2e3210 /src/android/mm/cros_camera_buffer.cpp
parentbcfd7b636922261987121d785a4ce4a13dd6afc3 (diff)
android: Fix unused parameter warnings on Chrome OS
The Chrome OS-specific code has multiple function parameters that are not used. This results in compilation warnings. Fix them with [[maybe_unused]]. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Diffstat (limited to 'src/android/mm/cros_camera_buffer.cpp')
-rw-r--r--src/android/mm/cros_camera_buffer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
index 1a4fd5d1..59e26d1b 100644
--- a/src/android/mm/cros_camera_buffer.cpp
+++ b/src/android/mm/cros_camera_buffer.cpp
@@ -48,7 +48,8 @@ private:
};
CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,
- buffer_handle_t camera3Buffer, int flags)
+ buffer_handle_t camera3Buffer,
+ [[maybe_unused]] int flags)
: Extensible::Private(cameraBuffer), handle_(camera3Buffer),
numPlanes_(0), valid_(false), registered_(false)
{
@@ -128,7 +129,7 @@ Span<uint8_t> CameraBuffer::Private::plane(unsigned int plane)
bufferManager_->GetPlaneSize(handle_, plane) };
}
-size_t CameraBuffer::Private::jpegBufferSize(size_t maxJpegBufferSize) const
+size_t CameraBuffer::Private::jpegBufferSize([[maybe_unused]] size_t maxJpegBufferSize) const
{
return bufferManager_->GetPlaneSize(handle_, 0);
}