Re: Compiler warning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Compiler warning
Дата
Msg-id 2849063.1598458128@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Compiler warning  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> I see a compiler warning on git master:
>    sharedfileset.c:288:8: warning: variable ‘found’ set but not used [-Wunused-but-set-variable]

Could get rid of the variable entirely: change the "break" to "return"
and then the final Assert can be "Assert(false)".

            regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Compiler warning
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: LWLockAcquire and LockBuffer mode argument