From 5cf81b3c06403f83b1a69c4855fc18e79fc596fd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 7 Dec 2000 02:52:27 +0000 Subject: [PATCH] Silence compiler warning. --- src/backend/utils/adt/numeric.c | 6 +++--- src/bin/pg_dump/pg_backup_archiver.c | 3 ++- src/interfaces/ecpg/lib/data.c | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c index 6bb7ba379d..3eb733c6d7 100644 --- a/src/backend/utils/adt/numeric.c +++ b/src/backend/utils/adt/numeric.c @@ -5,7 +5,7 @@ * * 1998 Jan Wieck * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.35 2000/12/03 20:45:36 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.36 2000/12/07 02:47:35 tgl Exp $ * * ---------- */ @@ -3560,7 +3560,7 @@ exp_var(NumericVar *arg, NumericVar *result) set_var_from_var(&const_one, &ifac); set_var_from_var(&const_one, &ni); - for (i = 2; TRUE; i++) + for (i = 2; ; i++) { add_var(&ni, &const_one, &ni); mul_var(&xpow, &x, &xpow); @@ -3644,7 +3644,7 @@ ln_var(NumericVar *arg, NumericVar *result) set_var_from_var(&const_one, &ni); - for (i = 2; TRUE; i++) + for (i = 2; ; i++) { add_var(&ni, &const_two, &ni); mul_var(&xx, &x, &xx); diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index d8a969b41e..7f2bfe3261 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -1199,7 +1199,8 @@ char* ReadStr(ArchiveHandle* AH) return buf; } -int _discoverArchiveFormat(ArchiveHandle* AH) +static int +_discoverArchiveFormat(ArchiveHandle* AH) { FILE *fh; char sig[6]; /* More than enough */ diff --git a/src/interfaces/ecpg/lib/data.c b/src/interfaces/ecpg/lib/data.c index fdaa583aa4..8230564e12 100644 --- a/src/interfaces/ecpg/lib/data.c +++ b/src/interfaces/ecpg/lib/data.c @@ -212,7 +212,6 @@ get_data(PGresult *results, int act_tuple, int act_field, int lineno, { ECPGraise(lineno, ECPG_FLOAT_FORMAT, pval); return (false); - dres = 0.0; } } else -- 2.40.0