From: Greg Stark Date: Sun, 27 Mar 2011 20:31:41 +0000 (+0100) Subject: fix up a couple non-prototypes of the form foo() to be foo(void) -- found using ... X-Git-Tag: REL9_1_ALPHA5~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b66e2c086b1a24d8adad52842725db8c0499e02;p=postgresql fix up a couple non-prototypes of the form foo() to be foo(void) -- found using -Wstrict-prototypes --- diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 86ef1d068d..9f926bd242 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -64,7 +64,7 @@ static PGconn *GetConnection(void); static void ReceiveTarFile(PGconn *conn, PGresult *res, int rownum); static void ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum); -static void BaseBackup(); +static void BaseBackup(void); #ifdef HAVE_LIBZ static const char * @@ -752,7 +752,7 @@ GetConnection(void) } static void -BaseBackup() +BaseBackup(void) { PGresult *res; uint32 timeline; diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h index 21b64d5d38..3b8ed4c4b0 100644 --- a/src/interfaces/ecpg/include/ecpglib.h +++ b/src/interfaces/ecpg/include/ecpglib.h @@ -92,7 +92,7 @@ void *ECPGget_var(int number); void ECPGfree_auto_mem(void); #ifdef ENABLE_THREAD_SAFETY -void ecpg_pthreads_init(); +void ecpg_pthreads_init(void); #endif #ifdef __cplusplus