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

Commit 13d44b4

Browse files
committed
Warning removal cleanup
1 parent 8d9be64 commit 13d44b4

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/backend/parser/scan.l

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.3 1996/11/08 20:45:45 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.4 1996/11/11 04:54:45 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -250,6 +250,7 @@ myinput(char* buf, int max)
250250
}
251251
}
252252

253+
#ifdef NOT_USED
253254
char*
254255
CurScan(void)
255256
{
@@ -258,5 +259,7 @@ CurScan(void)
258259
(yy_c_buf_p - &yy_current_buffer->yy_ch_buf[yy_n_chars]);
259260
*/
260261
}
262+
#endif
263+
261264
#endif /* FLEX_SCANNER */
262265

src/backend/parser/sysfunc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
#include <time.h>
2020

2121
#include <config.h>
22+
#include <parser/sysfunc.h>
2223

2324
/*
2425
* Can't get much more obvious than this. Might need to replace localtime()
2526
* on older systems...
2627
*/
27-
char *Sysfunc_system_date(void)
28+
static char *Sysfunc_system_date(void)
2829
{
2930
time_t cur_time_secs;
3031
struct tm *cur_time_expanded;

src/backend/tcop/postgres.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.17 1996/11/10 03:02:50 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.18 1996/11/11 04:54:51 momjian Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -736,7 +736,7 @@ die(SIGNAL_ARGS)
736736
}
737737

738738
/* signal handler for floating point exception */
739-
void
739+
static void
740740
FloatExceptionHandler(SIGNAL_ARGS)
741741
{
742742
elog(WARN, "floating point exception! the last floating point operation eit\
@@ -1257,7 +1257,7 @@ PostgresMain(int argc, char *argv[])
12571257
*/
12581258
if (IsUnderPostmaster == false) {
12591259
puts("\nPOSTGRES backend interactive interface");
1260-
puts("$Revision: 1.17 $ $Date: 1996/11/10 03:02:50 $");
1260+
puts("$Revision: 1.18 $ $Date: 1996/11/11 04:54:51 $");
12611261
}
12621262

12631263
/* ----------------

src/backend/tcop/utility.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.7 1996/11/10 02:25:16 bryanh Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.8 1996/11/11 04:54:54 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -42,6 +42,7 @@
4242
#include "rewrite/rewriteDefine.h"
4343
#include "tcop/tcopdebug.h"
4444
#include "tcop/dest.h"
45+
#include "tcop/utility.h"
4546
#include "fmgr.h" /* For load_file() */
4647

4748
#ifndef NO_SECURITY

0 commit comments

Comments
 (0)