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

Commit990fa43

Browse files
committed
Get rid of some minor compiler warnings.
1 parent0bdf46a commit990fa43

File tree

6 files changed

+25
-23
lines changed

6 files changed

+25
-23
lines changed

‎src/backend/utils/Gen_fmgrtab.sh.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
11+
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
1212
#
1313
# NOTES
1414
# Passes any -D options on to cpp prior to generating the list
@@ -79,7 +79,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
7979
*
8080
* Copyright (c) 1994, Regents of the University of California
8181
*
82-
*$Id: Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
82+
*$Id: Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
8383
*
8484
* NOTES
8585
*******************************
@@ -193,7 +193,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
193193
*
194194
*
195195
* IDENTIFICATION
196-
*$Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $
196+
*$Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
197197
*
198198
* NOTES
199199
*
@@ -220,7 +220,9 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
220220
#else
221221
# ifdef HAVE_LIMITS_H
222222
# include <limits.h>
223-
# define MAXINTINT_MAX
223+
# ifndef MAXINT
224+
# define MAXINTINT_MAX
225+
# endif
224226
# else
225227
# include <values.h>
226228
# endif

‎src/backend/utils/adt/geo_ops.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/utils/adt/geo_ops.c,v 1.37 1998/09/01 04:32:33momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.38 1998/10/26 01:01:33tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -872,7 +872,7 @@ line_out(LINE *line)
872872
/* line_construct_pm()
873873
* point-slope
874874
*/
875-
LINE*
875+
staticLINE*
876876
line_construct_pm(Point*pt,doublem)
877877
{
878878
LINE*result=palloc(sizeof(LINE));
@@ -1294,7 +1294,7 @@ path_open(PATH *path)
12941294
}/* path_open() */
12951295

12961296

1297-
PATH*
1297+
staticPATH*
12981298
path_copy(PATH*path)
12991299
{
13001300
PATH*result;

‎src/backend/utils/adt/mac.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
*PostgreSQL type definitions for MAC addresses.
33
*
4-
*$Id: mac.c,v 1.5 1998/10/08 02:08:45 momjian Exp $
4+
*$Id: mac.c,v 1.6 1998/10/26 01:01:36 tgl Exp $
55
*/
66

77
#include<stdio.h>
@@ -234,40 +234,40 @@ macaddr_lt(macaddr *a1, macaddr *a2)
234234
{
235235
return ((hibits(a1)<hibits(a2))||
236236
((hibits(a1)==hibits(a2))&&lobits(a1)<lobits(a2)));
237-
};
237+
}
238238

239239
bool
240240
macaddr_le(macaddr*a1,macaddr*a2)
241241
{
242242
return ((hibits(a1)<hibits(a2))||
243243
((hibits(a1)==hibits(a2))&&lobits(a1) <=lobits(a2)));
244-
};
244+
}
245245

246246
bool
247247
macaddr_eq(macaddr*a1,macaddr*a2)
248248
{
249249
return ((hibits(a1)==hibits(a2))&& (lobits(a1)==lobits(a2)));
250-
};
250+
}
251251

252252
bool
253253
macaddr_ge(macaddr*a1,macaddr*a2)
254254
{
255255
return ((hibits(a1)>hibits(a2))||
256256
((hibits(a1)==hibits(a2))&&lobits(a1) >=lobits(a2)));
257-
};
257+
}
258258

259259
bool
260260
macaddr_gt(macaddr*a1,macaddr*a2)
261261
{
262262
return ((hibits(a1)>hibits(a2))||
263263
((hibits(a1)==hibits(a2))&&lobits(a1)>lobits(a2)));
264-
};
264+
}
265265

266266
bool
267267
macaddr_ne(macaddr*a1,macaddr*a2)
268268
{
269269
return ((hibits(a1)!=hibits(a2))|| (lobits(a1)!=lobits(a2)));
270-
};
270+
}
271271

272272
/*
273273
*Comparison function for sorting:

‎src/backend/utils/adt/ruleutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* out of it's tuple
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.5 1998/10/06 22:14:16 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.6 1998/10/26 01:01:35 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -1556,7 +1556,7 @@ get_tle_expr(QryHier *qh, int rt_index, TargetEntry *tle, bool varprefix)
15561556
* with the type cast out of a Const
15571557
* ----------
15581558
*/
1559-
char*
1559+
staticchar*
15601560
get_const_expr(Const*constval)
15611561
{
15621562
HeapTupletypetup;

‎src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.92 1998/10/12 02:05:42 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.93 1998/10/26 01:05:07 tgl Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -2527,7 +2527,7 @@ ParseACL(const char *acls, int *count)
25272527
* Called for sequences and tables
25282528
*/
25292529

2530-
void
2530+
staticvoid
25312531
dumpACL(FILE*fout,TableInfotbinfo)
25322532
{
25332533
intk,

‎src/bin/psql/psql.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.162 1998/10/08 00:10:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.163 1998/10/26 01:04:37 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -379,7 +379,7 @@ listAllDbs(PsqlSettings *pset)
379379
* List The Database Tables returns 0 if all went well
380380
*
381381
*/
382-
int
382+
staticint
383383
tableList(PsqlSettings*pset,booldeep_tablelist,charinfo_type,
384384
boolsystem_tables)
385385
{
@@ -535,7 +535,7 @@ tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
535535
* List Tables Grant/Revoke Permissions returns 0 if all went well
536536
*
537537
*/
538-
int
538+
staticint
539539
rightsList(PsqlSettings*pset)
540540
{
541541
charlistbuf[512];
@@ -661,7 +661,7 @@ static void emitNtimes (FILE *fout, const char *str, int N)
661661
*
662662
*
663663
*/
664-
int
664+
staticint
665665
tableDesc(PsqlSettings*pset,char*table,FILE*fout)
666666
{
667667
chardescbuf[512];
@@ -877,7 +877,7 @@ tableDesc(PsqlSettings *pset, char *table, FILE *fout)
877877
*
878878
*
879879
*/
880-
int
880+
staticint
881881
objectDescription(PsqlSettings*pset,char*object)
882882
{
883883
chardescbuf[512];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp