Re: a2e35b53 added unused variable to ConversionCreate()

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: a2e35b53 added unused variable to ConversionCreate()
Дата
Msg-id 20150305202454.GV3291@alvh.no-ip.org
обсуждение исходный текст
Ответ на a2e35b53 added unused variable to ConversionCreate()  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
Peter Geoghegan wrote:
> I'm seeing this on a the master branch tip when building at -O2:
> 
> pg_conversion.c: In function ‘ConversionCreate’:
> pg_conversion.c:53:6: error: variable ‘oid’ set but not used
> [-Werror=unused-but-set-variable]
>   Oid   oid;
>       ^
> cc1: all warnings being treated as errors
> 
> I think that commit a2e35b53 did this.

Obviously the commit did not introduce an unused variable, but instead
made another variable take its place as the function's return value.  In
an assert-enabled build it was used by an assert, which is why I didn't
notice the problem.  I removed the assert and the variable so this
should be fixed now.

Thanks for reporting.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: MD5 authentication needs help
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: MD5 authentication needs help