Re: pgsql: Fix default text search parser's ts_headline code for phrase que - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Fix default text search parser's ts_headline code for phrase que
Date
Msg-id 26090.1586459784@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Fix default text search parser's ts_headline code forphrase que  (Erik Rijkers <er@xs4all.nl>)
List pgsql-committers
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



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: improve documentation about ts_headline() function.
Next
From: Tom Lane
Date:
Subject: pgsql: Further cleanup of ts_headline code.