Re: Remove unnecessary static specifier

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove unnecessary static specifier
Дата
Msg-id 815395.1738771515@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove unnecessary static specifier  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: Remove unnecessary static specifier
Список pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> From a quick first inspection (and running the tests with the patch applied) I
> agree with this, these variables do not need to be static.  I'll stare a bit
> more at this to make sure but seems like the right patch.

+1.  All three of those variables are visibly assigned to before any
other reference, so they cannot carry data across calls of the
function.

While we're at it, could we make the adjacent "magic" string be
"static const char *magic"?  (Probably needs a couple more
"const" modifiers at use sites, too.)

            regards, tom lane



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