Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKFdm-0006AN-Nc for pgsql-committers@arkaria.postgresql.org; Wed, 29 Jul 2015 00:54:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKFdm-0000mk-9e for pgsql-committers@arkaria.postgresql.org; Wed, 29 Jul 2015 00:54:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKFda-0000ZC-6b for pgsql-committers@postgresql.org; Wed, 29 Jul 2015 00:54:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKFdX-0000wt-6p for pgsql-committers@postgresql.org; Wed, 29 Jul 2015 00:54:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t6T0sIo6008118; Tue, 28 Jul 2015 20:54:18 -0400 From: Tom Lane To: Joe Conway cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Suppress "variable may be used uninitialized" warning. In-reply-to: <55B81A67.1010104@joeconway.com> References: <55B81A67.1010104@joeconway.com> Comments: In-reply-to Joe Conway message dated "Tue, 28 Jul 2015 17:12:23 -0700" Date: Tue, 28 Jul 2015 20:54:18 -0400 Message-ID: <8117.1438131258@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Joe Conway writes: >> Suppress "variable may be used uninitialized" warning. > That's odd -- I compiled both with and without debug options looking > for warnings and saw none. That warning is very compiler-dependent; smarter compilers can prove that an uninitialized usage is unreachable while dumber ones can't. I saw it on RHEL6's gcc 4.4.7. I figure that suppressing warnings on any reasonably popular/modern compiler is fair game. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers