Re: pgsql: Fix default text search parser's ts_headline code for phrase que

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Erik Rijkers <er(at)xs4all(dot)nl>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Fix default text search parser's ts_headline code for phrase que
Date: 2020-04-09 19:16:24
Message-ID: 26090.1586459784@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Erik Rijkers <er(at)xs4all(dot)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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-04-09 19:39:27 pgsql: Further cleanup of ts_headline code.
Previous Message Tom Lane 2020-04-09 19:11:25 pgsql: Doc: improve documentation about ts_headline() function.