Skip to content
Snippets Groups Projects
Commit 92d4294d authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

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: default avatarThomas Munro <thomas.munro@enterprisedb.com>
parent 0d0644dc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment