mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Fix a bunch of minor portability problems and maybe-bugs revealed by
running gcc and HP's cc with warnings cranked way up. Signed vs unsigned comparisons, routines declared static and then defined not-static, that kind of thing. Tedious, but perhaps useful...
This commit is contained in:
@ -64,7 +64,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/sort/logtape.c,v 1.3 2000/01/26 05:57:33 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/sort/logtape.c,v 1.4 2000/03/17 02:36:30 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -78,7 +78,7 @@
|
||||
* Block indexes are "long"s, so we can fit this many per indirect block.
|
||||
* NB: we assume this is an exact fit!
|
||||
*/
|
||||
#define BLOCKS_PER_INDIR_BLOCK (BLCKSZ / sizeof(long))
|
||||
#define BLOCKS_PER_INDIR_BLOCK ((int) (BLCKSZ / sizeof(long)))
|
||||
|
||||
/*
|
||||
* We use a struct like this for each active indirection level of each
|
||||
|
@ -78,7 +78,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplesort.c,v 1.7 2000/03/01 17:14:09 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplesort.c,v 1.8 2000/03/17 02:36:31 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1751,7 +1751,7 @@ comparetup_index(Tuplesortstate *state, const void *a, const void *b)
|
||||
IndexTuple tuple1 = (IndexTuple) a;
|
||||
IndexTuple tuple2 = (IndexTuple) b;
|
||||
Relation rel = state->indexRel;
|
||||
Size keysz = RelationGetNumberOfAttributes(rel);
|
||||
int keysz = RelationGetNumberOfAttributes(rel);
|
||||
ScanKey scankey = state->indexScanKey;
|
||||
TupleDesc tupDes;
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user