Re: sepgsql: label regression test failed

Поиск
Список
Период
Сортировка
От Kohei KaiGai
Тема Re: sepgsql: label regression test failed
Дата
Msg-id CADyhKSWL12+myjbg_8itnwM5N9jT540WEnS00uNLHZTBH4ZXwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: sepgsql: label regression test failed  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
2014-05-16 16:26 GMT+09:00 Heikki Linnakangas <hlinnakangas@vmware.com>:
> On 05/14/2014 07:33 AM, Sergey Muraviov wrote:
>>
>> I've got this compiler warning:
>>   relation.c: In function ‘sepgsql_relation_drop’:
>> relation.c:472:25: warning: ‘tclass’ may be used uninitialized in this
>> function [-Wmaybe-uninitialized]
>>    sepgsql_avc_check_perms(&object,
>>                           ^
>
> KaiGei, could you take a look at this warning, too? It looks like a genuine
> bug to me, but I'm not sure what we should do there instead.
>
This warning is harmless, because the code path that does not initialize
"tclass" variable (a case when dropped relation is index) never goes to
the code path that references "tclass".
It just checks schema's {remove_name} permission, then jumps to
another code path for index, never backed.

BTW, I could not produce this message in my environment with -Wall.
(Fedora 20, gcc-4.8.2). Is it a newer compiler's wisdom?

Thanks,
--
KaiGai Kohei <kaigai@kaigai.gr.jp>

Вложения

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

Предыдущее
От: Sameer Thakur
Дата:
Сообщение: Re: Priority table or Cache table
Следующее
От: Hans-Jürgen Schönig
Дата:
Сообщение: Re: Priority table or Cache table