Re: Compilation warning with MSVC in pg_depend.c

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compilation warning with MSVC in pg_depend.c
Date: 2017-04-07 21:38:45
Message-ID: 636501f0-7578-24a8-271d-b5e148bfa24c@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 4/6/17 23:03, Michael Paquier wrote:
> Hi all,
>
> I am getting the following warning with MSVC 2010 for what is a result
> of 3217327 (identity columns):
> c:\users\michael\git\postgres\src\backend\catalog\pg_depend.c(615):
> warning C4715: 'getOwnedSequence' : not all control paths return a
> value [C:\Users\michael\git\postgres\postgres.vcxproj]
>
> I agree that this compiler is dumb after looking at the code, but
> could it be possible to silence this warning with something like the
> attached?

fixed

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-04-07 21:40:22 mvstats triggers 32bit warnings
Previous Message Claudio Freire 2017-04-07 21:33:07 Re: Making clausesel.c Smarter