pgsql: Fix compiler warning on MSVC

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix compiler warning on MSVC
Date: 2022-11-07 21:54:56
Message-ID: E1osA52-0004mG-31@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2022-11-07 21:55:27 Re: pgsql: Resolve partition strategy during early parsing
Previous Message Tom Lane 2022-11-07 21:51:55 pgsql: Stamp 10.23.