Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
64af43a1
Commit
64af43a1
authored
Nov 08, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add casts to suppress compiler warnings observed on Darwin platform
(surprised no one has reported these yet...)
parent
c6e25ed1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
src/backend/storage/page/bufpage.c
src/backend/storage/page/bufpage.c
+2
-2
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varchar.c
+7
-4
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+7
-5
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-misc.c
+3
-2
No files found.
src/backend/storage/page/bufpage.c
View file @
64af43a1
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.4
0 2001/10/28 06:25:51 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.4
1 2001/11/08 04:05:13 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -349,7 +349,7 @@ PageRepairFragmentation(Page page, OffsetNumber *unused)
...
@@ -349,7 +349,7 @@ PageRepairFragmentation(Page page, OffsetNumber *unused)
if
(
totallen
>
(
Size
)
(
pd_special
-
pd_lower
))
if
(
totallen
>
(
Size
)
(
pd_special
-
pd_lower
))
elog
(
ERROR
,
"PageRepairFragmentation: corrupted item lengths, total %u, avail %u"
,
elog
(
ERROR
,
"PageRepairFragmentation: corrupted item lengths, total %u, avail %u"
,
totallen
,
pd_special
-
pd_lower
);
(
unsigned
int
)
totallen
,
pd_special
-
pd_lower
);
/* sort itemIdSortData array into decreasing itemoff order */
/* sort itemIdSortData array into decreasing itemoff order */
qsort
((
char
*
)
itemidbase
,
nused
,
sizeof
(
struct
itemIdSortData
),
qsort
((
char
*
)
itemidbase
,
nused
,
sizeof
(
struct
itemIdSortData
),
...
...
src/backend/utils/adt/varchar.c
View file @
64af43a1
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.8
5 2001/10/25 05:49:46 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.8
6 2001/11/08 04:05:13 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -117,7 +117,8 @@ bpcharin(PG_FUNCTION_ARGS)
...
@@ -117,7 +117,8 @@ bpcharin(PG_FUNCTION_ARGS)
if
(
strspn
(
s
+
mbmaxlen
,
" "
)
==
len
-
mbmaxlen
)
if
(
strspn
(
s
+
mbmaxlen
,
" "
)
==
len
-
mbmaxlen
)
len
=
mbmaxlen
;
len
=
mbmaxlen
;
else
else
elog
(
ERROR
,
"value too long for type character(%d)"
,
maxlen
);
elog
(
ERROR
,
"value too long for type character(%d)"
,
(
int
)
maxlen
);
/*
/*
* XXX: at this point, maxlen is the necessary byte length, not
* XXX: at this point, maxlen is the necessary byte length, not
...
@@ -128,7 +129,8 @@ bpcharin(PG_FUNCTION_ARGS)
...
@@ -128,7 +129,8 @@ bpcharin(PG_FUNCTION_ARGS)
if
(
strspn
(
s
+
maxlen
,
" "
)
==
len
-
maxlen
)
if
(
strspn
(
s
+
maxlen
,
" "
)
==
len
-
maxlen
)
len
=
maxlen
;
len
=
maxlen
;
else
else
elog
(
ERROR
,
"value too long for type character(%d)"
,
maxlen
);
elog
(
ERROR
,
"value too long for type character(%d)"
,
(
int
)
maxlen
);
#endif
#endif
}
}
#ifdef MULTIBYTE
#ifdef MULTIBYTE
...
@@ -443,7 +445,8 @@ varcharin(PG_FUNCTION_ARGS)
...
@@ -443,7 +445,8 @@ varcharin(PG_FUNCTION_ARGS)
len
=
maxlen
;
len
=
maxlen
;
#endif
#endif
else
else
elog
(
ERROR
,
"value too long for type character varying(%d)"
,
maxlen
);
elog
(
ERROR
,
"value too long for type character varying(%d)"
,
(
int
)
maxlen
);
}
}
result
=
palloc
(
len
+
VARHDRSZ
);
result
=
palloc
(
len
+
VARHDRSZ
);
...
...
src/bin/pg_dump/pg_backup_archiver.c
View file @
64af43a1
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.3
7 2001/11/05 17:46:30 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.3
8 2001/11/08 04:05:12 tgl
Exp $
*
*
* Modifications - 28-Jun-2000 - pjw@rhyme.com.au
* Modifications - 28-Jun-2000 - pjw@rhyme.com.au
*
*
...
@@ -1226,10 +1226,11 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
...
@@ -1226,10 +1226,11 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
if
(
AH
->
writingBlob
)
if
(
AH
->
writingBlob
)
{
{
res
=
lo_write
(
AH
->
connection
,
AH
->
loFd
,
(
void
*
)
ptr
,
size
*
nmemb
);
res
=
lo_write
(
AH
->
connection
,
AH
->
loFd
,
(
void
*
)
ptr
,
size
*
nmemb
);
ahlog
(
AH
,
5
,
"wrote %d bytes of large object data (result = %d)
\n
"
,
size
*
nmemb
,
res
);
ahlog
(
AH
,
5
,
"wrote %d bytes of large object data (result = %d)
\n
"
,
if
(
res
<
size
*
nmemb
)
(
int
)
(
size
*
nmemb
),
res
);
if
(
res
!=
size
*
nmemb
)
die_horribly
(
AH
,
modulename
,
"could not write to large object (result: %d, expected: %d)
\n
"
,
die_horribly
(
AH
,
modulename
,
"could not write to large object (result: %d, expected: %d)
\n
"
,
res
,
size
*
nmemb
);
res
,
(
int
)
(
size
*
nmemb
)
);
return
res
;
return
res
;
}
}
...
@@ -1260,7 +1261,8 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
...
@@ -1260,7 +1261,8 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
{
{
res
=
fwrite
((
void
*
)
ptr
,
size
,
nmemb
,
AH
->
OF
);
res
=
fwrite
((
void
*
)
ptr
,
size
,
nmemb
,
AH
->
OF
);
if
(
res
!=
nmemb
)
if
(
res
!=
nmemb
)
die_horribly
(
AH
,
modulename
,
"could not write to output file (%d != %d)
\n
"
,
res
,
nmemb
);
die_horribly
(
AH
,
modulename
,
"could not write to output file (%d != %d)
\n
"
,
res
,
(
int
)
nmemb
);
return
res
;
return
res
;
}
}
}
}
...
...
src/interfaces/libpq/fe-misc.c
View file @
64af43a1
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.6
0 2001/11/05 17:46:37 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.6
1 2001/11/08 04:05:13 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -128,7 +128,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn)
...
@@ -128,7 +128,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn)
{
{
printfPQExpBuffer
(
&
conn
->
errorMessage
,
printfPQExpBuffer
(
&
conn
->
errorMessage
,
libpq_gettext
(
"could not flush enough data (space available: %d, space needed %d)
\n
"
),
libpq_gettext
(
"could not flush enough data (space available: %d, space needed %d)
\n
"
),
Max
(
conn
->
outBufSize
-
conn
->
outCount
,
0
),
nbytes
);
(
int
)
Max
(
conn
->
outBufSize
-
conn
->
outCount
,
0
),
(
int
)
nbytes
);
return
EOF
;
return
EOF
;
}
}
/* fixup avail for while loop */
/* fixup avail for while loop */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment