pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Rijkers <er@xs4all.nl>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 19:58:22 +0200
Message-ID: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl> (raw)
In-Reply-To: <E1jMaq8-0000bU-TU@gemulon.postgresql.org>
References: <E1jMaq8-0000bU-TU@gemulon.postgresql.org>

On 2020-04-09 19:19, Tom Lane wrote:
> Fix default text search parser's ts_headline code for phrase queries.
> 
> src/backend/tsearch/wparser_def.c     | 173 
> +++++++++++++++++++---------------
> src/test/regress/expected/tsearch.out |  43 ++++++---
> src/test/regress/sql/tsearch.sql      |  11 +++
> 3 files changed, 141 insertions(+), 86 deletions(-)

Hi,

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,
       |        ^~~~


I am not sure whether it is useful to report warnings/notes (I can see 
that these are not very important).

There is quite a lot of traffic on postgres-lists already; please let me 
know if it's maybe better to only report 'real' errors.

Thanks,

Erik Rijkers





view thread (7+ messages)  latest in thread

Message-ID: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl>
Permalink:  ../7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl/
Also on:    postgresql.org/message-id/7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl

 · 

reply

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: er@xs4all.nl, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix default text search parser's ts_headline code for phrase que
  In-Reply-To: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl>
  References: <E1jMaq8-0000bU-TU@gemulon.postgresql.org> <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl>

* 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