diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-08-29 10:46:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-08-29 10:46:13 -0400 |
commit | 8722e7965fd24bf94c278fb86cab99d0c5360532 (patch) | |
tree | 6b8052d9f418d1e0d29c7322733f368c56145a67 /src/interfaces/ecpg/test/expected/preproc-strings.c | |
parent | da9f9f75e5ce27a45878ffa262156d18f0046188 (diff) |
Silence -Wmissing-variable-declarations in headerscheck.
Newer gcc versions will emit warnings about missing extern
declarations if certain header files are compiled by themselves.
Add the "extern" declarations needed to quiet that.
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/1127775.1754417387@sss.pgh.pa.us
Diffstat (limited to 'src/interfaces/ecpg/test/expected/preproc-strings.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-strings.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-strings.c b/src/interfaces/ecpg/test/expected/preproc-strings.c index a26817968de..06a86a2bfae 100644 --- a/src/interfaces/ecpg/test/expected/preproc-strings.c +++ b/src/interfaces/ecpg/test/expected/preproc-strings.c @@ -18,6 +18,16 @@ #line 3 "strings.pgc" /* exec sql begin declare section */ #line 1 "strings.h" +/* redundant declaration to silence -Wmissing-variable-declarations */ + + + + + + + + + @@ -29,7 +39,10 @@ #line 5 "strings.pgc" -#line 1 "strings.h" +#line 2 "strings.h" + extern char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 , * s7 , * s8 ; + +#line 11 "strings.h" char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 , * s7 , * s8 ; /* exec sql end declare section */ #line 5 "strings.pgc" |