]> granicus.if.org Git - postgresql/commitdiff
More variables gcc moans about
authorMichael Meskes <meskes@postgresql.org>
Wed, 20 May 2009 16:39:56 +0000 (16:39 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 20 May 2009 16:39:56 +0000 (16:39 +0000)
27 files changed:
src/interfaces/ecpg/test/expected/preproc-array_of_struct.c
src/interfaces/ecpg/test/expected/preproc-autoprep.c
src/interfaces/ecpg/test/expected/sql-dyntest.c
src/interfaces/ecpg/test/expected/sql-fetch.c
src/interfaces/ecpg/test/expected/sql-func.c
src/interfaces/ecpg/test/expected/sql-indicators.c
src/interfaces/ecpg/test/expected/sql-indicators.stderr
src/interfaces/ecpg/test/expected/sql-insupd.c
src/interfaces/ecpg/test/expected/sql-parser.c
src/interfaces/ecpg/test/expected/sql-quote.c
src/interfaces/ecpg/test/expected/sql-show.c
src/interfaces/ecpg/test/expected/thread-prep.c
src/interfaces/ecpg/test/expected/thread-thread.c
src/interfaces/ecpg/test/expected/thread-thread_implicit.c
src/interfaces/ecpg/test/preproc/array_of_struct.pgc
src/interfaces/ecpg/test/preproc/autoprep.pgc
src/interfaces/ecpg/test/sql/dyntest.pgc
src/interfaces/ecpg/test/sql/fetch.pgc
src/interfaces/ecpg/test/sql/func.pgc
src/interfaces/ecpg/test/sql/indicators.pgc
src/interfaces/ecpg/test/sql/insupd.pgc
src/interfaces/ecpg/test/sql/parser.pgc
src/interfaces/ecpg/test/sql/quote.pgc
src/interfaces/ecpg/test/sql/show.pgc
src/interfaces/ecpg/test/thread/prep.pgc
src/interfaces/ecpg/test/thread/thread.pgc
src/interfaces/ecpg/test/thread/thread_implicit.pgc

index a477f56aa2f1e1e5b0ab052ab2996ba4e4ecdf5d..2ef12693fa942230cad217ccd08261ebd2555e9b 100644 (file)
@@ -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 */
         
index 180e933f59e2ee0e5a9fab72cadd0c0f1ba15048..23d179b484c216ae3609c9ff3ead220679910c68 100644 (file)
@@ -23,7 +23,7 @@
 #line 6 "autoprep.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   /* exec sql begin declare section */
             
   
index f3281b5b014b5dac803a365e3201352b32629003..ebc8f22ed9d956fa05dbb3331a08ec8c78630597 100644 (file)
@@ -151,7 +151,7 @@ error (void)
 }
 
 int
-main (int argc, char **argv)
+main ()
 {
   /* exec sql begin declare section */
    
index 1638be117dd4b80a26c49b3838619455536f87f3..64b857976ec774e7a6957c2cb4e9fb50356bed25 100644 (file)
@@ -22,7 +22,7 @@
 #line 5 "fetch.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   /* exec sql begin declare section */
      
        
index 63c4b3125100f2f3405510d5637c215163c3357b..5d524b88ffb54bfec32c8d023d6e6c49919c72e7 100644 (file)
@@ -22,7 +22,7 @@
 #line 5 "func.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   
 #line 8 "func.pgc"
  char text [ 25 ] ;
index 51f34e6008e1431876e225b1ad26fbcb53741861..e805e4ee00349209b2cfee187207f0ece9448597 100644 (file)
@@ -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;
 }
index 84fe349fef0e5bd6793d9815899c6b61bcca81fd..e47f77fb7774250e3e94fb725ed6041e83ddfa54 100644 (file)
@@ -2,87 +2,87 @@
 [NO_PID]: sqlca: code: 0, state: 00000
 [NO_PID]: ECPGconnect: opening database regress1 on <DEFAULT> port <DEFAULT>  
 [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
index ac87f5f4b9f7752559b656e1048771cb15adc531..756f2b3c26c5fbbf4ed248914f908338054006bc 100644 (file)
@@ -22,7 +22,7 @@
 #line 5 "insupd.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   /* exec sql begin declare section */
          
   
index 59ba10a739448737240ba501538e12dd55766c95..876bbf34a154d76d1278b83a66b105098ccf3884 100644 (file)
@@ -23,7 +23,7 @@
 #line 6 "parser.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   /* exec sql begin declare section */
           
   
index 3e0fcd5d2cc1f09b587108ece9db0119f1d375a2..e32aa683125c1c2b993675ea166f4ea03c4ca70d 100644 (file)
@@ -22,7 +22,7 @@
 #line 5 "quote.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   /* exec sql begin declare section */
      
      
index 4625289aedc0c6afaa073efe8f64c7812a6207bb..bed441d72b71792e92935b3dc79376b4463ce347 100644 (file)
@@ -22,7 +22,7 @@
 #line 5 "show.pgc"
 
 
-int main(int argc, char* argv[]) {
+int main() {
   /* exec sql begin declare section */
        
   
index ab91657b1227722d73b192f08c77dece6e8c51a7..9af4ba522c30c1851454b17932d531996796d3db 100644 (file)
@@ -195,7 +195,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
        return 0;
 }
 
-int main (int argc, char** argv)
+int main ()
 {
        int i;
 #ifdef WIN32
index 1ffdef5ffe3f598985152bcebd3d5ae0517eb4bf..485f9dd8af587cd3b87b9726a046685565258081 100644 (file)
@@ -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;
index 0a1760f867f3ff8306fa3d2ee13000b30568f02d..f91a09889246de00cc43f855d70af578ed966e94 100644 (file)
@@ -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;
index 50fde0662ab7ef07909665f5512c000f6212afb4..40d566b4be8ef332300f2e72d16ea89dd5a1c09d 100644 (file)
@@ -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];
index d29c3d556d06feaf84ff55f64f21fa4db1ffe716..413284d3951d518239bce39d7669a7e7740b51cc 100644 (file)
@@ -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;
index a1efabe033c5a99f88c77e51ace951ec0c9963ab..d917dd27c6377f7724ffe10041a4b5411086420f 100644 (file)
@@ -16,7 +16,7 @@ error (void)
 }
 
 int
-main (int argc, char **argv)
+main ()
 {
   exec sql begin declare section;
   int COUNT;
index 32ca8e413032e5a8c5a154a9712da5678e722f6a..c25791aa37912864eff597cc7f3f1685b9d630ce 100644 (file)
@@ -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; 
index 19c4ba7cc646e38d435a757ff211bb693f759c1b..5ebcafa11dac6ced0381a9f58e3239a05d11eff9 100644 (file)
@@ -4,7 +4,7 @@
 
 EXEC SQL INCLUDE ../regression;
 
-int main(int argc, char* argv[]) {
+int main() {
   EXEC SQL char text[25];
 
   ECPGdebug(1, stderr);
index 6ccf568afb445f309a96eda218ff974e488cdec1..c1f26e33adcfe1d843f5a2533560fe267d715149 100644 (file)
@@ -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;
index 9be1af498f772a41dbcbe4bc29accefb6d01ddfa..8a7b25807288552f1638258537b613d0046c8db9 100644 (file)
@@ -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;
index 806aabb70f9c8c998d4e41ceea09c8d46bc142b0..e7115b9472601a4f28f07c761ab4eb1dbaefff12 100644 (file)
@@ -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;
index 25aca500caa023fc77ba55856a345c9fb6745660..50680646f639995a0941d00aab7f3a345bfb32b8 100644 (file)
@@ -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;
index d3a888d5095ccc11a1ecc3eeb86205852507b04d..339678ae994ca0f915fd940b53e4c90f56c813ab 100644 (file)
@@ -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;
index 83e634610fa17b0bbcb96904b620398637aec29e..dc039a2294d554c21add7b8f0dd573dfba4461c5 100644 (file)
@@ -57,7 +57,7 @@ static void* fn(void* arg)
        return 0;
 }
 
-int main (int argc, char** argv)
+int main ()
 {
        int i;
 #ifdef WIN32
index bcb79b27e30f1a2b8480007ceabdfd44bc4da7ee..d8ee96dd55ab0abf24111ef4d80c62966703a46a 100644 (file)
@@ -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;
index 64e837b6c2ebd130aadf551f61bead7657f2a47a..e39b8b80077d90b7ccf265765b0f325210fe1e3c 100644 (file)
@@ -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;