[libcamera-devel] [PATCH 1/2] meson: Enable Wunused-parameter to catch unused parameters
Umang Jain
umang.jain at ideasonboard.com
Thu Aug 5 10:35:50 CEST 2021
Functions paramters either needs to be used or marked with
[[maybe_unused]]. Neither of them should be flagged during
compilation.
Signed-off-by: Umang Jain <umang.jain at ideasonboard.com>
---
meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/meson.build b/meson.build
index a49c484f..e555034b 100644
--- a/meson.build
+++ b/meson.build
@@ -43,6 +43,7 @@ endif
common_arguments = [
'-Wshadow',
+ '-Wunused-parameter',
'-include', 'config.h',
]
--
2.31.0
More information about the libcamera-devel
mailing list