Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3d87216

Browse files
committed
Get rid of some minor compiler warnings.
(HP's cc doesn't like if you forward-declare a routine static, and then don't make it static in the actual definition...)
1 parent 0852fbb commit 3d87216

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/backend/commands/copy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.62 1998/09/23 04:22:02 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.63 1998/10/26 00:59:21 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -961,7 +961,7 @@ inString(char c, char *s)
961961
* Reads input from fp until an end of line is seen.
962962
*/
963963

964-
void
964+
static void
965965
CopyReadNewline(FILE *fp, int *newline)
966966
{
967967
if (!*newline)

src/backend/commands/variable.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Routines for handling of 'SET var TO',
33
* 'SHOW var' and 'RESET var' statements.
44
*
5-
* $Id: variable.c,v 1.16 1998/10/14 05:09:58 momjian Exp $
5+
* $Id: variable.c,v 1.17 1998/10/26 00:59:22 tgl Exp $
66
*
77
*/
88

@@ -307,7 +307,7 @@ parse_cost_heap(const char *value)
307307
return TRUE;
308308
}
309309

310-
bool
310+
static bool
311311
show_cost_heap()
312312
{
313313

@@ -344,7 +344,7 @@ parse_cost_index(const char *value)
344344
return TRUE;
345345
}
346346

347-
bool
347+
static bool
348348
show_cost_index()
349349
{
350350

@@ -464,7 +464,7 @@ show_date()
464464
return TRUE;
465465
}
466466

467-
bool
467+
static bool
468468
reset_date()
469469
{
470470
DateStyle = USE_POSTGRES_DATES;
@@ -550,7 +550,7 @@ show_timezone()
550550
* in a core dump (under Linux anyway).
551551
* - thomas 1998-01-26
552552
*/
553-
bool
553+
static bool
554554
reset_timezone()
555555
{
556556
/* no time zone has been set in this session? */
@@ -598,7 +598,8 @@ parse_query_limit(const char *value)
598598
reset_query_limit();
599599
return(TRUE);
600600
}
601-
limit = pg_atoi(value, sizeof(int32), '\0');
601+
/* why is pg_atoi's arg not declared "const char *" ? */
602+
limit = pg_atoi((char *) value, sizeof(int32), '\0');
602603
if (limit <= -1) {
603604
elog(ERROR, "Bad value for # of query limit (%s)", value);
604605
}
@@ -766,7 +767,7 @@ show_ksqo()
766767
return TRUE;
767768
}
768769

769-
bool
770+
static bool
770771
reset_ksqo()
771772
{
772773
_use_keyset_query_optimizer = false;

src/backend/storage/file/fd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 1994, Regents of the University of California
77
*
88
* IDENTIFICATION
9-
* $Id: fd.c,v 1.34 1998/09/01 04:31:45 momjian Exp $
9+
* $Id: fd.c,v 1.35 1998/10/26 01:00:13 tgl Exp $
1010
*
1111
* NOTES:
1212
*
@@ -175,7 +175,7 @@ pg_fsync(int fd)
175175

176176
#define fsync pg_fsync
177177

178-
long
178+
static long
179179
pg_nofile(void)
180180
{
181181
static long no_files = 0;

0 commit comments

Comments
 (0)