Remove unnecessary casts in printf format arguments (%zu/%zd)
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-12-09T06:33:08Z
Releases:
19 (unreleased)
Remove unnecessary casts in printf format arguments (%zu/%zd) Many of these are probably left over from before use of %zu/%zd was portable. Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/07fa29f9-42d7-4aac-8834-197918cbbab6%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gistutil.c | modified | +2 −2 |
| src/backend/access/gist/gistxlog.c | modified | +2 −4 |
| src/backend/access/hash/hash_xlog.c | modified | +2 −4 |
| src/backend/backup/basebackup_server.c | modified | +4 −4 |
| src/backend/libpq/auth.c | modified | +6 −6 |
| src/backend/libpq/pqcomm.c | modified | +2 −2 |
| src/backend/nodes/outfuncs.c | modified | +2 −2 |
| src/backend/storage/page/bufpage.c | modified | +10 −10 |
| src/backend/utils/adt/array_expanded.c | modified | +2 −2 |
| src/backend/utils/adt/arrayfuncs.c | modified | +32 −32 |
| src/backend/utils/adt/varchar.c | modified | +4 −4 |
| src/backend/utils/misc/guc.c | modified | +1 −1 |
| src/bin/pg_combinebackup/write_manifest.c | modified | +2 −2 |
| src/bin/pg_dump/pg_backup_archiver.c | modified | +4 −6 |
| src/bin/pg_rewind/libpq_source.c | modified | +1 −1 |
| src/bin/pg_rewind/local_source.c | modified | +2 −2 |
| src/bin/pg_rewind/pg_rewind.c | modified | +2 −2 |
| src/interfaces/libpq/fe-connect.c | modified | +2 −2 |
| src/interfaces/libpq/fe-misc.c | modified | +4 −4 |
Discussion
- Remove unnecessary casts in printf format arguments 3 messages · 2025-12-04 → 2025-12-09