Re: a2e35b53 added unused variable to ConversionCreate()
В списке pgsql-hackers по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера