agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_nodiscard decorations to some Bitmapset functions.
Date: Wed, 09 Sep 2026 21:30:50 +0000
Message-ID: <E1x4PsX-00000004BJV-2G7l@gemulon.postgresql.org> (raw)

Add pg_nodiscard decorations to some Bitmapset functions.

There's no conceivable use-case for ignoring the result of the
functions that return a pointer to a Bitmapset.  Add pg_nodiscard
decorations to those like commit a378ba49a5 did for some functions
in pg_list.h.

Author: Jan Nidzwetzki <jan@planetscale.com>
Discussion: https://postgr.es/m/2020a70e-76f3-4661-afa6-82c2639251c2%40planetscale.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d2b65863f04f99eab15eca01a54708d2f8ad6099

Modified Files
--------------
src/include/nodes/bitmapset.h | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)



view thread (2+ messages)

Message-ID: <E1x4PsX-00000004BJV-2G7l@gemulon.postgresql.org>
Permalink:  ../E1x4PsX-00000004BJV-2G7l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x4PsX-00000004BJV-2G7l@gemulon.postgresql.org

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-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add pg_nodiscard decorations to some Bitmapset functions.
  In-Reply-To: <E1x4PsX-00000004BJV-2G7l@gemulon.postgresql.org>

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

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