| От | Tom Lane |
|---|---|
| Тема | Significant oversight in that #include-removal script |
| Дата | |
| Msg-id | 4733.1231363463@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: Significant oversight in that #include-removal script
|
| Список | pgsql-hackers |
I just noticed that optimizer/cost.h is not #include'd by plancat.c,
which is not too cool because the former has the extern declaration
for the constraint_exclusion global variable while the latter has
the actual definition. I didn't run it down in the CVS history to
make sure, but I imagine what happened is that your unnecessary-includes
script diked it out because the file still compiled warning-free without
that header, ie, there is no warning for "int foo;" not preceded by
"extern int foo;". This isn't real good because it would allow a global
variable to get out of sync with its declaration. Is there a way to
prevent such problems in future?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера