Re: meson: Specify -Wformat as a common warning flag for extensions

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Sutou Kouhei <kou(at)clear-code(dot)com>, andres(at)anarazel(dot)de
Cc: tristan(at)neon(dot)tech, michael(at)paquier(dot)xyz, pgsql-hackers(at)postgresql(dot)org
Subject: Re: meson: Specify -Wformat as a common warning flag for extensions
Date: 2024-05-29 06:31:05
Message-ID: 4707d4ed-f268-43c0-b4dd-cdbc7520f508@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 07.04.24 18:01, Sutou Kouhei wrote:
> +# We don't have "warning_level == 3" and "warning_level ==
> +# 'everything'" here because we don't use these warning levels.
> +if warning_level == '1'
> + common_builtin_flags += ['-Wall']
> +elif warning_level == '2'
> + common_builtin_flags += ['-Wall', '-Wextra']
> +endif

I would trim this even further and always export just '-Wall'. The
other options aren't really something we support.

The other stanzas, on '-g' and '-O*', look good to me.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-05-29 06:41:06 meson "experimental"?
Previous Message Pradeep Kumar 2024-05-29 06:19:02 Re: Need clarification on compilation errors in PG 16.2