Some compiling warnings

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Some compiling warnings
Дата
Msg-id CAMbWs4_D-vgLEh7eO47p=73u1jWO78NWf6Qfv1FndY1kG-Q-jA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Some compiling warnings  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
When trying Valgrind I came across some compiling warnings with
USE_VALGRIND defined and --enable-cassert not configured.  This is
mainly because in this case we have MEMORY_CONTEXT_CHECKING defined
while USE_ASSERT_CHECKING not defined.

aset.c: In function ‘AllocSetFree’:
aset.c:1027:10: warning: unused variable ‘chunk_size’ [-Wunused-variable]
    Size  chunk_size = block->endptr - (char *) pointer;
          ^
generation.c: In function ‘GenerationFree’:
generation.c:633:8: warning: variable ‘chunksize’ set but not used [-Wunused-but-set-variable]
  Size  chunksize;
        ^

Attach a trivial patch for the fix.

Thanks
Richard
Вложения

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

Предыдущее
От: Corey Huinker
Дата:
Сообщение: Re: Add SHELL_EXIT_CODE to psql
Следующее
От: Ankit Kumar Pandey
Дата:
Сообщение: Re: [PATCH] Improve ability to display optimizer analysis using OPTIMIZER_DEBUG