libcamera/src/apps
Laurent Pinchart dac1a0549a apps: cam: Fix compilation error with clang when libtiff-4 is not found
When libtiff-4 is not found, the private camera_ member of the FileSink
class is set but never used. This causes a compilation error with clang:

In file included from ../../src/apps/cam/file_sink.cpp:19:
../../src/apps/cam/file_sink.h:39:27: error: private field 'camera_' is not used [-Werror,-Wunused-private-field]
        const libcamera::Camera *camera_;

Fix by making the camera_ member field conditional on HAVE_TIFF.

Fixes: 6404b163bc ("cam: file_sink: Add support for DNG output")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-10-24 16:30:56 +03:00
..
cam apps: cam: Fix compilation error with clang when libtiff-4 is not found 2022-10-24 16:30:56 +03:00
lc-compliance apps: Move libevent dependency to src/apps/meson.build 2022-10-20 13:36:26 +03:00
qcam apps: Move libtiff dependency to src/apps/meson.build 2022-10-20 13:36:26 +03:00
meson.build apps: Move libtiff dependency to src/apps/meson.build 2022-10-20 13:36:26 +03:00