Skip to content

Commit 5cf81b3

Browse files
committed
Silence compiler warning.
1 parent 06dde51 commit 5cf81b3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/backend/utils/adt/numeric.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* 1998 Jan Wieck
77
*
8-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.35 2000/12/03 20:45:36 tgl Exp $
8+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.36 2000/12/07 02:47:35 tgl Exp $
99
*
1010
* ----------
1111
*/
@@ -3560,7 +3560,7 @@ exp_var(NumericVar *arg, NumericVar *result)
35603560
set_var_from_var(&const_one, &ifac);
35613561
set_var_from_var(&const_one, &ni);
35623562

3563-
for (i = 2; TRUE; i++)
3563+
for (i = 2; ; i++)
35643564
{
35653565
add_var(&ni, &const_one, &ni);
35663566
mul_var(&xpow, &x, &xpow);
@@ -3644,7 +3644,7 @@ ln_var(NumericVar *arg, NumericVar *result)
36443644

36453645
set_var_from_var(&const_one, &ni);
36463646

3647-
for (i = 2; TRUE; i++)
3647+
for (i = 2; ; i++)
36483648
{
36493649
add_var(&ni, &const_two, &ni);
36503650
mul_var(&xx, &x, &xx);

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,8 @@ char* ReadStr(ArchiveHandle* AH)
11991199
return buf;
12001200
}
12011201

1202-
int _discoverArchiveFormat(ArchiveHandle* AH)
1202+
static int
1203+
_discoverArchiveFormat(ArchiveHandle* AH)
12031204
{
12041205
FILE *fh;
12051206
char sig[6]; /* More than enough */

src/interfaces/ecpg/lib/data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ get_data(PGresult *results, int act_tuple, int act_field, int lineno,
212212
{
213213
ECPGraise(lineno, ECPG_FLOAT_FORMAT, pval);
214214
return (false);
215-
dres = 0.0;
216215
}
217216
}
218217
else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy