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>2021-09-09 13:53:27 +0100
commit10426792b7dcc3489216419777f2dcda31c1f46e (patch)
tree44ed8dd14ff609259c6c7e4dae89b1dc0c8fe02a
parentfb2688e5d253888d9d28f862afe262c0aa836bb0 (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 5a7376d5..bc788212 100644
--- a/src/libcamera/pipeline/vivid/vivid.cpp
+++ b/src/libcamera/pipeline/vivid/vivid.cpp
@@ -9,6 +9,19 @@
#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)