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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Fix default text search parser's ts_headline code for phrase que
Дата
Msg-id 26090.1586459784@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Fix default text search parser's ts_headline code forphrase que  (Erik Rijkers <er@xs4all.nl>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: improve documentation about ts_headline() function.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Further cleanup of ts_headline code.