summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-05-12 15:13:42 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-04-23 15:59:29 +0100
commitcf3a62cc6f43cc56e707e59d2fd742972e3f34e6 (patch)
treec1a4ee5c09f107c9f44f575a4e6a7c61e282597d
parentf3bb3325e0f3c4ef5bf08b6794d89043cbef94fd (diff)
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 <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/vivid/vivid.cpp13
1 files changed, 13 insertions, 0 deletions
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)