pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sutou Kouhei <kou@clear-code.com>
To: pgsql-hackers@postgresql.org
Subject: Re: meson: Specify -Wformat as a common warning flag for extensions
Date: Thu, 22 Feb 2024 16:41:48 +0900 (JST)
Message-ID: <20240222.164148.1096963224859199636.kou@clear-code.com> (raw)
In-Reply-To: <20240122.141139.931086145628347157.kou@clear-code.com>
References: <20240122.141139.931086145628347157.kou@clear-code.com>

Hi,

Could someone take a look at this?

Patch is attached in the original e-mail:
https://www.postgresql.org/message-id/20240122.141139.931086145628347157.kou%40clear-code.com


Thanks,
-- 
kou

In <20240122.141139.931086145628347157.kou@clear-code.com>
  "meson: Specify -Wformat as a common warning flag for extensions" on Mon, 22 Jan 2024 14:11:39 +0900 (JST),
  Sutou Kouhei <kou@clear-code.com> wrote:

> Hi,
> 
> I'm an extension developer. If I use PostgreSQL built with
> Meson, I get the following warning:
> 
>     cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
> 
> Because "pg_config --cflags" includes -Wformat-security but
> doesn't include -Wformat.
> 
> Can we specify -Wformat as a common warning flag too? If we
> do it, "pg_config --cflags" includes both of
> -Wformat-security and -Wformat. So I don't get the warning.
> 
> 
> Thanks,
> -- 
> kou





view thread (17+ messages)  latest in thread

Message-ID: <20240222.164148.1096963224859199636.kou@clear-code.com>
Permalink:  ../20240222.164148.1096963224859199636.kou@clear-code.com/
Also on:    postgresql.org/message-id/20240222.164148.1096963224859199636.kou@clear-code.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: kou@clear-code.com
  Subject: Re: meson: Specify -Wformat as a common warning flag for extensions
  In-Reply-To: <20240222.164148.1096963224859199636.kou@clear-code.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox