Re: [PATCH] pg_regress.c: Fix "make check" on Mac OS X: Pass DYLD_LIBRARY_PATH
В списке pgsql-hackers по дате отправления:
| От | David Zhang |
|---|---|
| Тема | Re: [PATCH] pg_regress.c: Fix "make check" on Mac OS X: Pass DYLD_LIBRARY_PATH |
| Дата | |
| Msg-id | 168695071271.357334.2585593529574745046.pgcf@coridan.postgresql.org обсуждение |
| Ответ на | Re: [PATCH] pg_regress.c: Fix "make check" on Mac OS X: Pass DYLD_LIBRARY_PATH (Michael Paquier <michael@paquier.xyz>) |
| Ответы |
Re: [PATCH] pg_regress.c: Fix "make check" on Mac OS X: Pass DYLD_LIBRARY_PATH
|
| Список | pgsql-hackers |
I have applied the patch to the latest master branch and successfully executed './configure && make && make check' on macOSVentura. However, during the process, a warning was encountered: "mixing declarations and code is incompatible withstandards before C99 [-Wdeclaration-after-statement]". Moving the declaration of 'result' to the beginning like belowcan resolve the warning, and it would be better to use a unique variable instead of 'result'. #ifdef __darwin__ static char extra_envvars[4096]; +int result = -1; ... ... -int result = snprintf(extra_envvars, sizeof(extra_envvars), "DYLD_LIBRARY_PATH=%s", +result = snprintf(extra_envvars, sizeof(extra_envvars), "DYLD_LIBRARY_PATH=%s",
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера