mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Move all extern declarations for GUC variables to header files
Add extern declarations in appropriate header files for global variables related to GUC. In many cases, this was handled quite inconsistently before, with some GUC variables declared in a header file and some only pulled in via ad-hoc extern declarations in various .c files. Also add PGDLLIMPORT qualifications to those variables. These were previously missing because src/tools/mark_pgdllimport.pl has only been used with header files. This also fixes -Wmissing-variable-declarations warnings for GUC variables (not yet part of the standard warning options). Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
This commit is contained in:
@ -82,9 +82,6 @@ char *GUC_check_errmsg_string;
|
||||
char *GUC_check_errdetail_string;
|
||||
char *GUC_check_errhint_string;
|
||||
|
||||
/* Kluge: for speed, we examine this GUC variable's value directly */
|
||||
extern bool in_hot_standby_guc;
|
||||
|
||||
|
||||
/*
|
||||
* Unit conversion tables.
|
||||
|
Reference in New Issue
Block a user