From aa6954104644334c53838f181053b9f7aa13f58c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 7 Feb 2023 06:53:05 +0100 Subject: Remove useless casts to (void *) in arguments of some system functions The affected functions are: bsearch, memcmp, memcpy, memset, memmove, qsort, repalloc Reviewed-by: Corey Huinker Discussion: https://www.postgresql.org/message-id/flat/fd9adf5d-b1aa-e82f-e4c7-263c30145807%40enterprisedb.com --- src/backend/partitioning/partbounds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/partitioning') diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index ed880c496a..a69c1d1e77 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -531,7 +531,7 @@ create_list_bounds(PartitionBoundSpec **boundspecs, int nparts, Assert(j == ndatums); qsort_arg(all_values, ndatums, sizeof(PartitionListValue), - qsort_partition_list_value_cmp, (void *) key); + qsort_partition_list_value_cmp, key); boundinfo->ndatums = ndatums; boundinfo->datums = (Datum **) palloc0(ndatums * sizeof(Datum *)); @@ -737,7 +737,7 @@ create_range_bounds(PartitionBoundSpec **boundspecs, int nparts, qsort_arg(all_bounds, ndatums, sizeof(PartitionRangeBound *), qsort_partition_rbound_cmp, - (void *) key); + key); /* Save distinct bounds from all_bounds into rbounds. */ rbounds = (PartitionRangeBound **) -- cgit v1.2.1