compiler warning read_objtype_from_string()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема compiler warning read_objtype_from_string()
Дата
Msg-id af08f995-bed9-5979-36af-c0dc6c3fb467@2ndquadrant.com
обсуждение исходный текст
Ответы Re: compiler warning read_objtype_from_string()  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
I'm getting the following compiler warning (using nondefault
optimization options):

objectaddress.c: In function 'read_objtype_from_string':
objectaddress.c:2309:9: error: 'type' may be used uninitialized in this
function [-Werror=maybe-uninitialized] return type;

The comment for the function says
* Return ObjectType for the given object type as given by* getObjectTypeDescription; if no valid ObjectType code
exists,but it's a* possible output type from getObjectTypeDescription, return -1.
 

But the claim that it can return -1 does not seem supported by the code.

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



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

Предыдущее
От: Mithun Cy
Дата:
Сообщение: Re: Cache Hash Index meta page.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Tuplesort merge pre-reading