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-05-14 23:56:48 +0100
commit2629ef92c3cd7c0ef24dd3c1cc2fda9686165610 (patch)
treefaa4e4f8d47c5db72006231006ca3c856d8646fd
parent7409e2ab0dac54bfefba2d70cc5c603fb4f52e10 (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 6bf12783..4621449e 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)