Re: [COMMITTERS] pgsql: Avoid possibly-unportable initializer, per buildfarm warning.

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: [COMMITTERS] pgsql: Avoid possibly-unportable initializer, per buildfarm warning.
Дата
Msg-id 87hclto1sx.fsf@oxford.xeocode.com
обсуждение исходный текст
Список pgsql-patches
"Tom Lane" <tgl@postgresql.org> writes:

> Log Message:
> -----------
> Avoid possibly-unportable initializer, per buildfarm warning.

This was lost in the tsearch2 merge.



Index: src/backend/tsearch/dict_thesaurus.c
===================================================================
RCS file: /home/stark/src/REPOSITORY/pgsql/src/backend/tsearch/dict_thesaurus.c,v
retrieving revision 1.3
diff -c -r1.3 dict_thesaurus.c
*** src/backend/tsearch/dict_thesaurus.c    25 Aug 2007 00:03:59 -0000    1.3
--- src/backend/tsearch/dict_thesaurus.c    17 Sep 2007 13:30:27 -0000
***************
*** 653,663 ****
  static LexemeInfo *
  findTheLexeme(DictThesaurus * d, char *lexeme)
  {
!     TheLexeme    key = {lexeme, NULL}, *res;

      if (d->nwrds == 0)
          return NULL;

      res = bsearch(&key, d->wrds, d->nwrds, sizeof(TheLexeme), cmpLexemeQ);

      if (res == NULL)
--- 653,666 ----
  static LexemeInfo *
  findTheLexeme(DictThesaurus * d, char *lexeme)
  {
!     TheLexeme    key, *res;

      if (d->nwrds == 0)
          return NULL;

+     key.lexeme = lexeme;
+     key.entries = NULL;
+
      res = bsearch(&key, d->wrds, d->nwrds, sizeof(TheLexeme), cmpLexemeQ);

      if (res == NULL)

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: HOT synced with HEAD
Следующее
От: Tom Lane
Дата:
Сообщение: Re: HOT synced with HEAD