pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: kangjoni76@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13689: Build failed pg9.4.5 with mingw5.1
Date: Tue, 20 Oct 2015 09:07:00 -0700
Message-ID: <33045.1445357220@sss.pgh.pa.us> (raw)
In-Reply-To: <20151020144043.GC15893@momjian.us>
References: <20151020043737.3034.62502@wrigleys.postgresql.org>
	<20151020144043.GC15893@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Bruce Momjian <bruce@momjian.us> writes:
> On Tue, Oct 20, 2015 at 04:37:37AM +0000, kangjoni76@gmail.com wrote:
>> Invalid conversion ForkNumber to int...
>> error build failed ForkNumber type doesn't have operator++.
>> This happen in src/common/relpath.c:52 and also at line 86.

> Wow, we are incrementing an enum here.  Is that legal?  What compiler
> are you using?

Possibly C++ doesn't allow that?  But if so, it's user error.
Postgres is written in C not C++.

(I could see a compiler issuing a warning here that forkNum will
get incremented past the declared range of the enum.  But that
doesn't seem to be what's being reported.)

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (4+ messages)  latest in thread

Message-ID: <33045.1445357220@sss.pgh.pa.us>
Permalink:  ../33045.1445357220@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/33045.1445357220@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, kangjoni76@gmail.com
  Subject: Re: BUG #13689: Build failed pg9.4.5 with mingw5.1
  In-Reply-To: <33045.1445357220@sss.pgh.pa.us>
  References: <20151020043737.3034.62502@wrigleys.postgresql.org> <20151020144043.GC15893@momjian.us> <33045.1445357220@sss.pgh.pa.us>

* 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