[libcamera-devel] [libcamera-internal] [PATCH] android/mm/cros_camera_buffer: Mark cameraBuffer unused parameter

Hirokazu Honda hiroh at chromium.org
Thu Aug 5 09:01:43 CEST 2021


Sorry, I sent the wrong mailing list. Resend.

On Wed, Aug 4, 2021 at 1:48 PM Hirokazu Honda <hiroh at chromium.org> wrote:
>
> Hi Umang,
>
> Yes, I am building inside CrOS chroot. It makes me compiling
> cros_camera_buffer.cpp, not generic_camera_buffer.cpp.
> The compilation failure is caused by Wunused-parameter.
> I expect the warning flag is also used in a standalone build too.
> I attached the build log.
>
> -Hiro
>
> On Wed, Aug 4, 2021 at 1:25 PM Umang Jain <umang.jain at ideasonboard.com> wrote:
> >
> > Hi Hiro,
> >
> > On 8/4/21 9:09 AM, Hirokazu Honda wrote:
> > > This fixes the compilation error introduced by the commit
> > > 33dd4fab9d39726be4fcbd300a27f2640be1cd6f.
> >
> > Would you mind sharing your build log? Are you building inside CrOS
> > chroot or standalone?
> >
> > I haven't seen any compilation failures recently, especially on master
> > commits.
> >
> > Thanks!
> >
> > > Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
> > > ---
> > >   src/android/mm/cros_camera_buffer.cpp | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
> > > index 437502fb..e8783ff8 100644
> > > --- a/src/android/mm/cros_camera_buffer.cpp
> > > +++ b/src/android/mm/cros_camera_buffer.cpp
> > > @@ -44,7 +44,7 @@ private:
> > >       } mem;
> > >   };
> > >
> > > -CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,
> > > +CameraBuffer::Private::Private([[maybe_unused]] CameraBuffer *cameraBuffer,
> > >                              buffer_handle_t camera3Buffer,
> > >                              [[maybe_unused]] int flags)
> > >       : handle_(camera3Buffer), numPlanes_(0), valid_(false),


More information about the libcamera-devel mailing list