Re: Header / Trailer Comment Typos for M4 macros

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Header / Trailer Comment Typos for M4 macros
Дата
Msg-id 6506.1587583769@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Header / Trailer Comment Typos for M4 macros  (Jesse Zhang <sbjesse@gmail.com>)
Ответы Re: Header / Trailer Comment Typos for M4 macros
Список pgsql-hackers
Jesse Zhang <sbjesse@gmail.com> writes:
> While poking at the build system I stumbled upon some trivial trailer
> comment inconsistencies in config/c-compiler.m4. They can be fixed
> either way: either changing the macro names or changing the comment. PFA
> a patch that keeps the macro names.

Pushed, thanks.

> In hindsight though, it seems that PGAC_PRINTF_ARCHETYPE was meant to be
> PGAC_C_PRINTF_ARCHETYPE, judging by a half-second squint of surrounding,
> similar macros. Thoughts?

Maybe, but I doubt it's worth renaming.

> Also in hindsight: it seems that, as suggested in the trailer typo,
> PGAC_PROG_CXX_VAR_OPT (a la the C version PGAC_PROG_CC_VAR_OPT) would be
> a good addition if we ever want to add the negative warning flags (for
> starter, Wno-unused-command-line-argument for clang++) to CXXFLAGS, but
> I assume it wasn't there in the final patch because we didn't use it
> (presumably because the patch was minimized?). Thoughts?

I'd be inclined not to add it till we have an actual use for it.
Dead code tends to break silently.

            regards, tom lane



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

Предыдущее
От: Corey Huinker
Дата:
Сообщение: Re: More efficient RI checks - take 2
Следующее
От: Robert Haas
Дата:
Сообщение: Re: design for parallel backup