Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMcf7-00055E-31 for pgsql-committers@arkaria.postgresql.org; Thu, 09 Apr 2020 19:16:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jMcf5-0003oS-UT for pgsql-committers@arkaria.postgresql.org; Thu, 09 Apr 2020 19:16:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMcf5-0003l0-Oa for pgsql-committers@lists.postgresql.org; Thu, 09 Apr 2020 19:16:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMcf3-0005KI-Nh for pgsql-committers@lists.postgresql.org; Thu, 09 Apr 2020 19:16:26 +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 039JGOVk026091; Thu, 9 Apr 2020 15:16:24 -0400 From: Tom Lane To: Erik Rijkers cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix default text search parser's ts_headline code for phrase que In-reply-to: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl> References: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl> Comments: In-reply-to Erik Rijkers message dated "Thu, 09 Apr 2020 19:58:22 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <26089.1586459784.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 09 Apr 2020 15:16:24 -0400 Message-ID: <26090.1586459784@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Erik Rijkers writes: > I get compiler warning/note from gcc 9.3.0 (on debian stretch): > wparser_def.c: In function ‘prsd_headline’: > wparser_def.c:2530:2: warning: ‘pose’ may be used uninitialized in this > function [-Wmaybe-uninitialized] > 2530 | mark_fragment(prs, highlightall, bestb, beste); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > wparser_def.c:2384:8: note: ‘pose’ was declared here > 2384 | int pose, > | ^~~~ Thanks, I'll go shut that up. We usually prefer to suppress all warnings emitted by commonly-used compilers. regards, tom lane