From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Rijkers <er@xs4all.nl>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix default text search parser's ts_headline code for phrase que
Date: Thu, 09 Apr 2020 15:16:24 -0400
Message-ID: <26090.1586459784@sss.pgh.pa.us> (raw)
In-Reply-To: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl>
References: <E1jMaq8-0000bU-TU@gemulon.postgresql.org>
<7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl>
Erik Rijkers <er@xs4all.nl> 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
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, er@xs4all.nl
Subject: Re: pgsql: Fix default text search parser's ts_headline code for phrase que
In-Reply-To: <26090.1586459784@sss.pgh.pa.us>
References: <E1jMaq8-0000bU-TU@gemulon.postgresql.org> <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl> <26090.1586459784@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