aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2016-02-19 23:07:46 -0500
committerPeter Eisentraut <peter_e@gmx.net>2016-03-08 19:41:51 -0500
commit92d4294d4bbddf94cec0dce729ade7bb2aada1b7 (patch)
treef06e0466d773dc262a9cd247e8f947767d34054d /contrib/postgres_fdw/postgres_fdw.c
parent0d0644dce82a87ef4b670fb60709ef1fd6a3030c (diff)
downloadpostgresql-92d4294d4bbddf94cec0dce729ade7bb2aada1b7.tar.gz
postgresql-92d4294d4bbddf94cec0dce729ade7bb2aada1b7.zip
psql: Fix some strange code in SQL help creation
Struct QL_HELP used to be defined as static in the sql_help.h header file, which is included in sql_help.c and help.c, thus creating two separate instances of the struct. This causes a warning from GCC 6, because the struct is not used in sql_help.c. Instead, declare the struct as extern in the header file and define it in sql_help.c. This also allows making a bunch of functions static because they are no longer needed outside of sql_help.c. Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions