Warnings in objectaddress.c

From: Дмитрий Воронин <carriingfate92(at)yandex(dot)ru>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Warnings in objectaddress.c
Date: 2017-10-01 14:33:24
Message-ID: 103881506868404@web41g.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello, hackers!

I'm building PostgreSQL 10 rc1 sources on Debian wheezy (gcc 4.7). I have those warnings:

objectaddress.c: In function ‘get_object_address’:
objectaddress.c:1646:10: warning: ‘typeoids[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
objectaddress.c:1578:8: note: ‘typeoids[1]’ was declared here
objectaddress.c:1623:7: warning: ‘typenames[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
objectaddress.c:1577:14: note: ‘typenames[1]’ was declared here
objectaddress.c:1646:10: warning: ‘typeoids[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
objectaddress.c:1578:8: note: ‘typeoids[0]’ was declared here
objectaddress.c:1623:7: warning: ‘typenames[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
objectaddress.c:1577:14: note: ‘typenames[0]’ was declared here

Those variables typeoids and typenames are arrays and are not initialized during definition.

Hope this helps. Thank you!

--
Best regargs, Dmitry Voronin

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-10-01 15:10:02 Re: show precise repos version for dev builds?
Previous Message Peter Eisentraut 2017-10-01 13:56:11 Re: Re: CREATE COLLATION does not sanitize ICU's BCP 47 language tags. Should it?