Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zv4dd-0000oD-Vp for pgsql-committers@arkaria.postgresql.org; Sat, 07 Nov 2015 14:38:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zv4dd-0001Q3-DY for pgsql-committers@arkaria.postgresql.org; Sat, 07 Nov 2015 14:38:41 +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 1Zv4db-0001Pu-UR for pgsql-committers@postgresql.org; Sat, 07 Nov 2015 14:38:40 +0000 Received: from mout.gmx.net ([212.227.17.22]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Zv4dY-0006ZQ-2Q for pgsql-committers@postgresql.org; Sat, 07 Nov 2015 14:38:38 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lm2lZ-1aUgVE3pqr-00Zfi0 for ; Sat, 07 Nov 2015 15:38:34 +0100 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 8FF9A2058B for ; Sat, 7 Nov 2015 09:38:32 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sat, 07 Nov 2015 09:38:32 -0500 X-Sasl-enc: 9sLDQU0GY9dd+njXe4HNDj4wvMaJA2q9ka7ARfu2tfJN 1446907112 Received: from [10.0.0.7] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id BABACC016DA; Sat, 7 Nov 2015 09:38:31 -0500 (EST) Subject: Re: pgsql: Try to convince gcc that TupleQueueRemap never falls off the end To: Robert Haas , pgsql-committers@postgresql.org References: From: Peter Eisentraut Message-ID: <563E0CE6.3060308@gmx.net> Date: Sat, 7 Nov 2015 09:38:30 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:skXLXfb6IMh+yAvQLFJCpXWZErGl92WsmQymrFj4V8wuyrnMw7Y qbkO7K/6XrdsoPKUY2rwPj9ohnlWY11/XtFUnum5Srk53trsq9Tdozw9gS4VUNfylrVqZfW TI4V35DbmKAa/7EHY9YbAbUJIwl/LDqQPOelZmeNcEmpFzEEYG4GTBFK606j7NhZ3D70BiQ WyWg8ZfY4HvHEE0g52ROA== X-UI-Out-Filterresults: notjunk:1;V01:K0:c0V5DMoJie0=:wmKWKzRgWwEajgOvbGmXYp i0dswrekEarPoRYywjwv2I3q/zAgij6xr63kYmE/mbdxJpd2w4tValZtpc6FpCb8CsAz8byOL 0m/Hr0386g52GcnDofMVlA7FGNRHPUwZoWq30SRb6zPPbFClM7q1JnsoUo59RQ9K7B7ugiqL6 YaYHic2gHqtT3fpVk2m371Of2Mzc+jRS9zMU8T+1MgabSmD9EBY9OrAyVaS62ZRaZZ++bKlBb NWFgAXSbbewmAZN786UvgnbqqwgOSrJt33DoCIs5ahyYahl6qoivR+2H7T2njk9rwxbutFgzm T5HYAOtDw1s4W0k1Zv/4yaVG43VP+vnqGKvg7mp5MKgpBFdIMXZWwJoeqC0pWQ4Ltrn4E494s VAf8rLDKar7ThgDvNfiAkJp9zLjG2dLgrKFIjsAMiQ+pVxxwzNHFbPEKa49nUzoKkoc94WTqf xdJzQOIwcKGGRsg6QpmvtpNN2UL9xNPDhOf/9ZCu+fLYfbul7Y94R8WtHdWJOASui95qEPfAz D5BSy6PqLwNyphhdP6ABG2YmXV7YbdIFQSQyYToKcvMs+jCBuLZmTx2QJLOcqNQRtvWM0m9Ic 850Cq1fgfMWqgcCYLAsAgVh6xsNlR4uyfMx5Tj/EGON06VGedyVxaO33gEScNO58D4PV/cjQV wwVlyplbKTGSSsW7+SMjv5yyvr5bT7zV+RHYRTjD4jn3owQock4vDuJn/kHn/bYURTjuD/zj0 LVkjBSe/1qCvOpRtPbFABtN2D+5fOwT3+PtM376gmjxAn5SSf+ZaF3E2ETH9pgaXVLsy9zUmZ UObIVoa X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 11/6/15 11:06 PM, Robert Haas wrote: > Try to convince gcc that TupleQueueRemap never falls off the end. > > Without this, MacOS gcc version 4.2.1 isn't convinced. I still see some compiler warnings from this: tqueue.c: In function ‘tqueueReceiveSlot’: tqueue.c:124:18: warning: variable ‘tup’ set but not used [-Wunused-but-set-variable] tqueue.c: In function ‘TupleQueueRemapTuple’: tqueue.c:612:7: warning: variable ‘dirty’ set but not used [-Wunused-but-set-variable] -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers