Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoZS7-0005Cg-J8 for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Oct 2015 16:07:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZoZS7-0000Qd-0J for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Oct 2015 16:07:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZoZRU-0007kk-Gi for pgsql-bugs@postgresql.org; Tue, 20 Oct 2015 16:07:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZoZRO-0002g4-0i for pgsql-bugs@postgresql.org; Tue, 20 Oct 2015 16:07:15 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t9KG6xeZ002208; Tue, 20 Oct 2015 12:06:59 -0400 From: Tom Lane To: Bruce Momjian cc: kangjoni76@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 In-reply-to: <20151020144043.GC15893@momjian.us> References: <20151020043737.3034.62502@wrigleys.postgresql.org> <20151020144043.GC15893@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 20 Oct 2015 10:40:43 -0400" Date: Tue, 20 Oct 2015 09:07:00 -0700 Message-ID: <33045.1445357220@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Bruce Momjian 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