pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix compiler warning on MSVC
Date: Mon, 07 Nov 2022 21:54:56 +0000
Message-ID: <E1osA52-0004mG-31@gemulon.postgresql.org> (raw)

Fix compiler warning on MSVC

MSVC does not understand that ereport(ERROR) does not return, so just
return the first enum PartitionStrategy value to keep the compiler from
complaining about the missing return.

Discussion: https://postgr.es/m/20221104161934.GB16921@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1613de8bc34b4977d0186b56ef5a00ef8058a74a

Modified Files
--------------
src/backend/parser/gram.y | 3 +++
1 file changed, 3 insertions(+)



Message-ID: <E1osA52-0004mG-31@gemulon.postgresql.org>
Permalink:  ../E1osA52-0004mG-31@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1osA52-0004mG-31@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Fix compiler warning on MSVC
  In-Reply-To: <E1osA52-0004mG-31@gemulon.postgresql.org>
  References: <E1osA52-0004mG-31@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox