From dc7f94177b634dbe815c49466c5037e795f38828 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 12 May 2021 15:13:42 +0100 Subject: DocumentationUseOnly: Disable compiler warning Explicitly disable the unused-parameter warning in this pipeline handler. Parameters are left unused while they are introduced incrementally, so for documentation purposes only we disable this warning so that we can compile each commit independently without breaking the flow of the development additions. This is not recommended practice within libcamera, please listen to your compiler warnings. Signed-off-by: Kieran Bingham --- src/libcamera/pipeline/vivid/vivid.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libcamera/pipeline/vivid/vivid.cpp b/src/libcamera/pipeline/vivid/vivid.cpp index bea74e64..2437b408 100644 --- a/src/libcamera/pipeline/vivid/vivid.cpp +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -10,6 +10,19 @@ #include "libcamera/internal/camera.h" #include "libcamera/internal/pipeline_handler.h" +/* + * Explicitly disable the unused-parameter warning in this pipeline handler. + * + * Parameters are left unused while they are introduced incrementally, so for + * documentation purposes only we disable this warning so that we can compile + * each commit independently without breaking the flow of the development + * additions. + * + * This is not recommended practice within libcamera, please listen to your + * compiler warnings. + */ +#pragma GCC diagnostic ignored "-Wunused-parameter" + namespace libcamera { LOG_DEFINE_CATEGORY(VIVID) -- cgit v1.2.1