Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit13d44b4

Browse files
committed
Warning removal cleanup
1 parent8d9be64 commit13d44b4

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

‎src/backend/parser/scan.l

Lines changed: 4 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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+
staticchar*Sysfunc_system_date(void)
2829
{
2930
time_tcur_time_secs;
3031
structtm*cur_time_expanded;

‎src/backend/tcop/postgres.c

Lines changed: 3 additions & 3 deletions
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+
staticvoid
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

Lines changed: 2 additions & 1 deletion
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
#ifndefNO_SECURITY

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp