pgsql: Fix compiler warning on MSVC - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Fix compiler warning on MSVC
Date
Msg-id E1osA52-0004mG-31@gemulon.postgresql.org
Whole thread Raw
List 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(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Stamp 10.23.
Next
From: David Rowley
Date:
Subject: Re: pgsql: Resolve partition strategy during early parsing