[pacman-dev] [PATCH] meson: use 'pedantic' compiler warning level
Allan McRae
allan at archlinux.org
Fri Mar 6 01:08:08 UTC 2020
On 6/3/20 10:50 am, Eli Schwartz wrote:
> On 3/5/20 7:42 PM, Anatol Pomozov wrote:
>> 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',
>
> We can just use meson setup --warnlevel 3, the other settings there are
> about making sure the software works as expected.
>
> FWIW, meson.build already adds a bunch of -W flags automatically for
> buildtype=debug. This would be a better place to go adding even more.
Agreed. I'm considering "buildtype=debug" to be the equivalent of
"--enable-git-version --enable-debug --enable-warningflags" in autotools
land.
A
More information about the pacman-dev
mailing list