From 11a497f99a14711d81bf0f19fe230d2287997194 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 20 May 2009 16:39:56 +0000 Subject: [PATCH] More variables gcc moans about --- .../test/expected/preproc-array_of_struct.c | 2 +- .../ecpg/test/expected/preproc-autoprep.c | 2 +- .../ecpg/test/expected/sql-dyntest.c | 2 +- src/interfaces/ecpg/test/expected/sql-fetch.c | 2 +- src/interfaces/ecpg/test/expected/sql-func.c | 2 +- .../ecpg/test/expected/sql-indicators.c | 41 +++++----- .../ecpg/test/expected/sql-indicators.stderr | 82 +++++++++---------- .../ecpg/test/expected/sql-insupd.c | 2 +- .../ecpg/test/expected/sql-parser.c | 2 +- src/interfaces/ecpg/test/expected/sql-quote.c | 2 +- src/interfaces/ecpg/test/expected/sql-show.c | 2 +- .../ecpg/test/expected/thread-prep.c | 2 +- .../ecpg/test/expected/thread-thread.c | 2 +- .../test/expected/thread-thread_implicit.c | 2 +- .../ecpg/test/preproc/array_of_struct.pgc | 2 +- src/interfaces/ecpg/test/preproc/autoprep.pgc | 2 +- src/interfaces/ecpg/test/sql/dyntest.pgc | 2 +- src/interfaces/ecpg/test/sql/fetch.pgc | 2 +- src/interfaces/ecpg/test/sql/func.pgc | 2 +- src/interfaces/ecpg/test/sql/indicators.pgc | 3 +- src/interfaces/ecpg/test/sql/insupd.pgc | 2 +- src/interfaces/ecpg/test/sql/parser.pgc | 2 +- src/interfaces/ecpg/test/sql/quote.pgc | 2 +- src/interfaces/ecpg/test/sql/show.pgc | 2 +- src/interfaces/ecpg/test/thread/prep.pgc | 2 +- src/interfaces/ecpg/test/thread/thread.pgc | 2 +- .../ecpg/test/thread/thread_implicit.pgc | 2 +- 27 files changed, 86 insertions(+), 88 deletions(-) diff --git a/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c index a477f56aa2..2ef12693fa 100644 --- a/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c +++ b/src/interfaces/ecpg/test/expected/preproc-array_of_struct.c @@ -50,7 +50,7 @@ typedef struct ind { #line 21 "array_of_struct.pgc" -int main( int argc, char * argv[] ) +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/preproc-autoprep.c b/src/interfaces/ecpg/test/expected/preproc-autoprep.c index 180e933f59..23d179b484 100644 --- a/src/interfaces/ecpg/test/expected/preproc-autoprep.c +++ b/src/interfaces/ecpg/test/expected/preproc-autoprep.c @@ -23,7 +23,7 @@ #line 6 "autoprep.pgc" -int main(int argc, char* argv[]) { +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/sql-dyntest.c b/src/interfaces/ecpg/test/expected/sql-dyntest.c index f3281b5b01..ebc8f22ed9 100644 --- a/src/interfaces/ecpg/test/expected/sql-dyntest.c +++ b/src/interfaces/ecpg/test/expected/sql-dyntest.c @@ -151,7 +151,7 @@ error (void) } int -main (int argc, char **argv) +main () { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/sql-fetch.c b/src/interfaces/ecpg/test/expected/sql-fetch.c index 1638be117d..64b857976e 100644 --- a/src/interfaces/ecpg/test/expected/sql-fetch.c +++ b/src/interfaces/ecpg/test/expected/sql-fetch.c @@ -22,7 +22,7 @@ #line 5 "fetch.pgc" -int main(int argc, char* argv[]) { +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/sql-func.c b/src/interfaces/ecpg/test/expected/sql-func.c index 63c4b31251..5d524b88ff 100644 --- a/src/interfaces/ecpg/test/expected/sql-func.c +++ b/src/interfaces/ecpg/test/expected/sql-func.c @@ -22,7 +22,7 @@ #line 5 "func.pgc" -int main(int argc, char* argv[]) { +int main() { #line 8 "func.pgc" char text [ 25 ] ; diff --git a/src/interfaces/ecpg/test/expected/sql-indicators.c b/src/interfaces/ecpg/test/expected/sql-indicators.c index 51f34e6008..e805e4ee00 100644 --- a/src/interfaces/ecpg/test/expected/sql-indicators.c +++ b/src/interfaces/ecpg/test/expected/sql-indicators.c @@ -91,74 +91,73 @@ struct sqlca_t *ECPGget_sqlca(void); #line 4 "indicators.pgc" - -int main(int argc, char **argv) +int main() { /* exec sql begin declare section */ -#line 10 "indicators.pgc" +#line 9 "indicators.pgc" int intvar = 5 ; -#line 11 "indicators.pgc" +#line 10 "indicators.pgc" int nullind = - 1 ; /* exec sql end declare section */ -#line 12 "indicators.pgc" +#line 11 "indicators.pgc" ECPGdebug(1,stderr); { ECPGconnect(__LINE__, 0, "regress1" , NULL, NULL , NULL, 0); } -#line 16 "indicators.pgc" +#line 15 "indicators.pgc" { ECPGsetcommit(__LINE__, "off", NULL);} -#line 17 "indicators.pgc" +#line 16 "indicators.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table indicator_test ( \"id\" int primary key , \"str\" text not null , val int null )", ECPGt_EOIT, ECPGt_EORT);} -#line 22 "indicators.pgc" +#line 21 "indicators.pgc" { ECPGtrans(__LINE__, NULL, "commit work");} -#line 23 "indicators.pgc" +#line 22 "indicators.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 )", ECPGt_EOIT, ECPGt_EORT);} -#line 25 "indicators.pgc" +#line 24 "indicators.pgc" /* use indicator in insert */ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 )", ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} -#line 28 "indicators.pgc" +#line 27 "indicators.pgc" nullind = 0; { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 )", ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} -#line 30 "indicators.pgc" +#line 29 "indicators.pgc" { ECPGtrans(__LINE__, NULL, "commit work");} -#line 31 "indicators.pgc" +#line 30 "indicators.pgc" /* use indicators to get information about selects */ { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT, ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);} -#line 34 "indicators.pgc" +#line 33 "indicators.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 2", ECPGt_EOIT, ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);} -#line 35 "indicators.pgc" +#line 34 "indicators.pgc" printf("intvar: %d, nullind: %d\n", intvar, nullind); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 3", ECPGt_EOIT, ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);} -#line 37 "indicators.pgc" +#line 36 "indicators.pgc" printf("intvar: %d, nullind: %d\n", intvar, nullind); @@ -167,24 +166,24 @@ int main(int argc, char **argv) { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update indicator_test set val = $1 where id = 1", ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} -#line 42 "indicators.pgc" +#line 41 "indicators.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT, ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);} -#line 43 "indicators.pgc" +#line 42 "indicators.pgc" printf("intvar: %d, nullind: %d\n", intvar, nullind); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table indicator_test", ECPGt_EOIT, ECPGt_EORT);} -#line 46 "indicators.pgc" +#line 45 "indicators.pgc" { ECPGtrans(__LINE__, NULL, "commit work");} -#line 47 "indicators.pgc" +#line 46 "indicators.pgc" { ECPGdisconnect(__LINE__, "CURRENT");} -#line 49 "indicators.pgc" +#line 48 "indicators.pgc" return 0; } diff --git a/src/interfaces/ecpg/test/expected/sql-indicators.stderr b/src/interfaces/ecpg/test/expected/sql-indicators.stderr index 84fe349fef..e47f77fb77 100644 --- a/src/interfaces/ecpg/test/expected/sql-indicators.stderr +++ b/src/interfaces/ecpg/test/expected/sql-indicators.stderr @@ -2,87 +2,87 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ECPGconnect: opening database regress1 on port [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGsetcommit on line 17: action "off"; connection "regress1" +[NO_PID]: ECPGsetcommit on line 16: action "off"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 19: query: create table indicator_test ( "id" int primary key , "str" text not null , val int null ); with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 18: query: create table indicator_test ( "id" int primary key , "str" text not null , val int null ); with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 19: using PQexec +[NO_PID]: ecpg_execute on line 18: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 19: OK: CREATE TABLE +[NO_PID]: ecpg_execute on line 18: OK: CREATE TABLE [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 23: action "commit work"; connection "regress1" +[NO_PID]: ECPGtrans on line 22: action "commit work"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 25: query: insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 ); with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 24: query: insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 ); with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 25: using PQexec +[NO_PID]: ecpg_execute on line 24: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 25: OK: INSERT 0 1 +[NO_PID]: ecpg_execute on line 24: OK: INSERT 0 1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 28: query: insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 ); with 1 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 27: query: insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 ); with 1 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 28: using PQexecParams +[NO_PID]: ecpg_execute on line 27: using PQexecParams [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 28: parameter 1 = null +[NO_PID]: free_params on line 27: parameter 1 = null [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 28: OK: INSERT 0 1 +[NO_PID]: ecpg_execute on line 27: OK: INSERT 0 1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 30: query: insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 ); with 1 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 29: query: insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 ); with 1 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 30: using PQexecParams +[NO_PID]: ecpg_execute on line 29: using PQexecParams [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 30: parameter 1 = 5 +[NO_PID]: free_params on line 29: parameter 1 = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 30: OK: INSERT 0 1 +[NO_PID]: ecpg_execute on line 29: OK: INSERT 0 1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 31: action "commit work"; connection "regress1" +[NO_PID]: ECPGtrans on line 30: action "commit work"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 34: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 33: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 34: using PQexec +[NO_PID]: ecpg_execute on line 33: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 34: correctly got 1 tuples with 1 fields +[NO_PID]: ecpg_execute on line 33: correctly got 1 tuples with 1 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 34: RESULT: 0 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 33: RESULT: 0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 35: query: select val from indicator_test where id = 2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 34: query: select val from indicator_test where id = 2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 35: using PQexec +[NO_PID]: ecpg_execute on line 34: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 35: correctly got 1 tuples with 1 fields +[NO_PID]: ecpg_execute on line 34: correctly got 1 tuples with 1 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 35: RESULT: offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 34: RESULT: offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 37: query: select val from indicator_test where id = 3; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 36: query: select val from indicator_test where id = 3; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 37: using PQexec +[NO_PID]: ecpg_execute on line 36: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 37: correctly got 1 tuples with 1 fields +[NO_PID]: ecpg_execute on line 36: correctly got 1 tuples with 1 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 37: RESULT: 5 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 36: RESULT: 5 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 42: query: update indicator_test set val = $1 where id = 1; with 1 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 41: query: update indicator_test set val = $1 where id = 1; with 1 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 42: using PQexecParams +[NO_PID]: ecpg_execute on line 41: using PQexecParams [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 42: parameter 1 = null +[NO_PID]: free_params on line 41: parameter 1 = null [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 42: OK: UPDATE 1 +[NO_PID]: ecpg_execute on line 41: OK: UPDATE 1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 43: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 42: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 43: using PQexec +[NO_PID]: ecpg_execute on line 42: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 43: correctly got 1 tuples with 1 fields +[NO_PID]: ecpg_execute on line 42: correctly got 1 tuples with 1 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 43: RESULT: offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 42: RESULT: offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 46: query: drop table indicator_test; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 45: query: drop table indicator_test; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 46: using PQexec +[NO_PID]: ecpg_execute on line 45: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 46: OK: DROP TABLE +[NO_PID]: ecpg_execute on line 45: OK: DROP TABLE [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 47: action "commit work"; connection "regress1" +[NO_PID]: ECPGtrans on line 46: action "commit work"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_finish: connection regress1 closed [NO_PID]: sqlca: code: 0, state: 00000 diff --git a/src/interfaces/ecpg/test/expected/sql-insupd.c b/src/interfaces/ecpg/test/expected/sql-insupd.c index ac87f5f4b9..756f2b3c26 100644 --- a/src/interfaces/ecpg/test/expected/sql-insupd.c +++ b/src/interfaces/ecpg/test/expected/sql-insupd.c @@ -22,7 +22,7 @@ #line 5 "insupd.pgc" -int main(int argc, char* argv[]) { +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/sql-parser.c b/src/interfaces/ecpg/test/expected/sql-parser.c index 59ba10a739..876bbf34a1 100644 --- a/src/interfaces/ecpg/test/expected/sql-parser.c +++ b/src/interfaces/ecpg/test/expected/sql-parser.c @@ -23,7 +23,7 @@ #line 6 "parser.pgc" -int main(int argc, char* argv[]) { +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/sql-quote.c b/src/interfaces/ecpg/test/expected/sql-quote.c index 3e0fcd5d2c..e32aa68312 100644 --- a/src/interfaces/ecpg/test/expected/sql-quote.c +++ b/src/interfaces/ecpg/test/expected/sql-quote.c @@ -22,7 +22,7 @@ #line 5 "quote.pgc" -int main(int argc, char* argv[]) { +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/sql-show.c b/src/interfaces/ecpg/test/expected/sql-show.c index 4625289aed..bed441d72b 100644 --- a/src/interfaces/ecpg/test/expected/sql-show.c +++ b/src/interfaces/ecpg/test/expected/sql-show.c @@ -22,7 +22,7 @@ #line 5 "show.pgc" -int main(int argc, char* argv[]) { +int main() { /* exec sql begin declare section */ diff --git a/src/interfaces/ecpg/test/expected/thread-prep.c b/src/interfaces/ecpg/test/expected/thread-prep.c index ab91657b12..9af4ba522c 100644 --- a/src/interfaces/ecpg/test/expected/thread-prep.c +++ b/src/interfaces/ecpg/test/expected/thread-prep.c @@ -195,7 +195,7 @@ if (sqlca.sqlcode < 0) sqlprint();} return 0; } -int main (int argc, char** argv) +int main () { int i; #ifdef WIN32 diff --git a/src/interfaces/ecpg/test/expected/thread-thread.c b/src/interfaces/ecpg/test/expected/thread-thread.c index 1ffdef5ffe..485f9dd8af 100644 --- a/src/interfaces/ecpg/test/expected/thread-thread.c +++ b/src/interfaces/ecpg/test/expected/thread-thread.c @@ -44,7 +44,7 @@ void *test_thread(void *arg); int nthreads = 10; int iterations = 20; -int main(int argc, char *argv[]) +int main() { #ifndef WIN32 pthread_t *threads; diff --git a/src/interfaces/ecpg/test/expected/thread-thread_implicit.c b/src/interfaces/ecpg/test/expected/thread-thread_implicit.c index 0a1760f867..f91a098892 100644 --- a/src/interfaces/ecpg/test/expected/thread-thread_implicit.c +++ b/src/interfaces/ecpg/test/expected/thread-thread_implicit.c @@ -45,7 +45,7 @@ void *test_thread(void *arg); int nthreads = 10; int iterations = 20; -int main(int argc, char *argv[]) +int main() { #ifndef WIN32 pthread_t *threads; diff --git a/src/interfaces/ecpg/test/preproc/array_of_struct.pgc b/src/interfaces/ecpg/test/preproc/array_of_struct.pgc index 50fde0662a..40d566b4be 100644 --- a/src/interfaces/ecpg/test/preproc/array_of_struct.pgc +++ b/src/interfaces/ecpg/test/preproc/array_of_struct.pgc @@ -20,7 +20,7 @@ EXEC SQL TYPE cust_ind IS short phone_ind; }; -int main( int argc, char * argv[] ) +int main() { EXEC SQL begin declare section; customer custs1[10]; diff --git a/src/interfaces/ecpg/test/preproc/autoprep.pgc b/src/interfaces/ecpg/test/preproc/autoprep.pgc index d29c3d556d..413284d395 100644 --- a/src/interfaces/ecpg/test/preproc/autoprep.pgc +++ b/src/interfaces/ecpg/test/preproc/autoprep.pgc @@ -5,7 +5,7 @@ /* test automatic prepare for all statements */ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL BEGIN DECLARE SECTION; int item[4], ind[4], i = 1; EXEC SQL END DECLARE SECTION; diff --git a/src/interfaces/ecpg/test/sql/dyntest.pgc b/src/interfaces/ecpg/test/sql/dyntest.pgc index a1efabe033..d917dd27c6 100644 --- a/src/interfaces/ecpg/test/sql/dyntest.pgc +++ b/src/interfaces/ecpg/test/sql/dyntest.pgc @@ -16,7 +16,7 @@ error (void) } int -main (int argc, char **argv) +main () { exec sql begin declare section; int COUNT; diff --git a/src/interfaces/ecpg/test/sql/fetch.pgc b/src/interfaces/ecpg/test/sql/fetch.pgc index 32ca8e4130..c25791aa37 100644 --- a/src/interfaces/ecpg/test/sql/fetch.pgc +++ b/src/interfaces/ecpg/test/sql/fetch.pgc @@ -4,7 +4,7 @@ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL BEGIN DECLARE SECTION; char str[25]; int i, count=1; diff --git a/src/interfaces/ecpg/test/sql/func.pgc b/src/interfaces/ecpg/test/sql/func.pgc index 19c4ba7cc6..5ebcafa11d 100644 --- a/src/interfaces/ecpg/test/sql/func.pgc +++ b/src/interfaces/ecpg/test/sql/func.pgc @@ -4,7 +4,7 @@ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL char text[25]; ECPGdebug(1, stderr); diff --git a/src/interfaces/ecpg/test/sql/indicators.pgc b/src/interfaces/ecpg/test/sql/indicators.pgc index 6ccf568afb..c1f26e33ad 100644 --- a/src/interfaces/ecpg/test/sql/indicators.pgc +++ b/src/interfaces/ecpg/test/sql/indicators.pgc @@ -3,8 +3,7 @@ exec sql include sqlca; exec sql include ../regression; - -int main(int argc, char **argv) +int main() { exec sql begin declare section; int intvar = 5; diff --git a/src/interfaces/ecpg/test/sql/insupd.pgc b/src/interfaces/ecpg/test/sql/insupd.pgc index 9be1af498f..8a7b258072 100644 --- a/src/interfaces/ecpg/test/sql/insupd.pgc +++ b/src/interfaces/ecpg/test/sql/insupd.pgc @@ -4,7 +4,7 @@ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL BEGIN DECLARE SECTION; int i1[3], i2[3]; EXEC SQL END DECLARE SECTION; diff --git a/src/interfaces/ecpg/test/sql/parser.pgc b/src/interfaces/ecpg/test/sql/parser.pgc index 806aabb70f..e7115b9472 100644 --- a/src/interfaces/ecpg/test/sql/parser.pgc +++ b/src/interfaces/ecpg/test/sql/parser.pgc @@ -5,7 +5,7 @@ /* test parser addition that merges two tokens into one */ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL BEGIN DECLARE SECTION; int item[3], ind[3], i; EXEC SQL END DECLARE SECTION; diff --git a/src/interfaces/ecpg/test/sql/quote.pgc b/src/interfaces/ecpg/test/sql/quote.pgc index 25aca500ca..50680646f6 100644 --- a/src/interfaces/ecpg/test/sql/quote.pgc +++ b/src/interfaces/ecpg/test/sql/quote.pgc @@ -4,7 +4,7 @@ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL BEGIN DECLARE SECTION; char var[25]; int i; diff --git a/src/interfaces/ecpg/test/sql/show.pgc b/src/interfaces/ecpg/test/sql/show.pgc index d3a888d509..339678ae99 100644 --- a/src/interfaces/ecpg/test/sql/show.pgc +++ b/src/interfaces/ecpg/test/sql/show.pgc @@ -4,7 +4,7 @@ EXEC SQL INCLUDE ../regression; -int main(int argc, char* argv[]) { +int main() { EXEC SQL BEGIN DECLARE SECTION; char var[25] = "public"; EXEC SQL END DECLARE SECTION; diff --git a/src/interfaces/ecpg/test/thread/prep.pgc b/src/interfaces/ecpg/test/thread/prep.pgc index 83e634610f..dc039a2294 100644 --- a/src/interfaces/ecpg/test/thread/prep.pgc +++ b/src/interfaces/ecpg/test/thread/prep.pgc @@ -57,7 +57,7 @@ static void* fn(void* arg) return 0; } -int main (int argc, char** argv) +int main () { int i; #ifdef WIN32 diff --git a/src/interfaces/ecpg/test/thread/thread.pgc b/src/interfaces/ecpg/test/thread/thread.pgc index bcb79b27e3..d8ee96dd55 100644 --- a/src/interfaces/ecpg/test/thread/thread.pgc +++ b/src/interfaces/ecpg/test/thread/thread.pgc @@ -26,7 +26,7 @@ void *test_thread(void *arg); int nthreads = 10; int iterations = 20; -int main(int argc, char *argv[]) +int main() { #ifndef WIN32 pthread_t *threads; diff --git a/src/interfaces/ecpg/test/thread/thread_implicit.pgc b/src/interfaces/ecpg/test/thread/thread_implicit.pgc index 64e837b6c2..e39b8b8007 100644 --- a/src/interfaces/ecpg/test/thread/thread_implicit.pgc +++ b/src/interfaces/ecpg/test/thread/thread_implicit.pgc @@ -27,7 +27,7 @@ void *test_thread(void *arg); int nthreads = 10; int iterations = 20; -int main(int argc, char *argv[]) +int main() { #ifndef WIN32 pthread_t *threads; -- 2.40.0