[pacman-dev] [PATCH v2] meson: use 'pedantic' compiler warning level by default
Allan McRae
allan at archlinux.org
Fri Mar 27 04:05:22 UTC 2020
On 27/3/20 7:07 am, Anatol Pomozov wrote:
> This sets parity with the autotools version of the build that has
> -pedantic flag enbled unconditionally.
>
> Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
> ---
> meson.build | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meson.build b/meson.build
> index 572526b2..fc81fa27 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -7,6 +7,7 @@ project('pacman',
> 'prefix=/usr',
> 'sysconfdir=/etc',
> 'localstatedir=/var',
> + 'warning_level=3',
> ],
> meson_version : '>= 0.51')
>
>
As discussed on here and IRC, -Wextra brings many flags and that is a
moving target.
I thought -pedantic would just be added to:
meson.build:
if get_option('buildtype').startswith('debug')
extra_cflags = [
...
More information about the pacman-dev
mailing list