pgsql: Fix incorrect format placeholders in pgstat.c

2024-08-03 Thread Michael Paquier
Fix incorrect format placeholders in pgstat.c These should have been switched from %d to %u in 3188a4582a8c in the debugging elogs added in ca1ba50fcb6f. PgStat_Kind should never be higher than INT32_MAX, but let's be clean. Issue noticed while hacking more on this area. Branch -- master D

pgsql: Add -Wmissing-variable-declarations to the standard compilation

2024-08-03 Thread Peter Eisentraut
Add -Wmissing-variable-declarations to the standard compilation flags This warning flag detects global variables not declared in header files. This is similar to what -Wmissing-prototypes does for functions. (More correctly, it is similar to what -Wmissing-declarations does for functions, but -W