mirror of
https://github.com/postgres/postgres.git
synced 2026-03-27 21:03:14 -04:00
When headerscheck compiles ecpglib_extern.h, POSTGRES_ECPG_INTERNAL is not defined, causing sqlca.h to expand "sqlca" as a macro (*ECPGget_sqlca()). This causes the ecpg_init_sqlca() declaration to trigger a -Wstrict-prototypes warning. Fix by renaming the parameter from "sqlca" to "sqlca_p" in both the declaration and definition, avoiding the macro expansion. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reported-by: Nazir Bilal Yavuz <byavuz81@gmail.com> Diagnosed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAN55FZ1VDwJ-ZD092ChYf%2B%2BhuP%2B-S3Cg45tJ8jNH5wx2c4BHAg%40mail.gmail.com |
||
|---|---|---|
| .. | ||
| ecpg | ||
| libpq | ||
| libpq-oauth | ||
| Makefile | ||
| meson.build | ||