diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-24 11:04:15 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-26 12:07:11 +0300 |
commit | fc3efe072357a30599add61506ee2613f227bf5c (patch) | |
tree | 4dff3aea734dd6c803c7774a20a0e74eaabe97f9 | |
parent | 6fc5f90f1635b635788bb16080f21c736d1bb359 (diff) |
meson: Enable warnings to flag missing declarations
A recently introduced typo resulted in a function definition not
matching its declaration. As the problem occurred in libipa, and IPA
modules are loaded dynamically and are linked with lazy symbol
resolution, the problem wasn't caught at build time.
To try and catch future similar issues, enable the
-Wmissing-declarations warning.
Suggested-by: Barnabás Pőcze <pobrn@protonmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 0ef4cdaa..2acd8c3e 100644 --- a/meson.build +++ b/meson.build @@ -95,6 +95,7 @@ if cc.has_header_symbol('stdlib.h', 'secure_getenv', prefix : '#define _GNU_SOUR endif common_arguments = [ + '-Wmissing-declarations', '-Wshadow', '-include', meson.current_build_dir() / 'config.h', ] |