Remove useless casts to (void *)

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Remove useless casts to (void *)
Date: 2024-10-29 08:06:32
Message-ID: 461ea37c-8b58-43b4-9736-52884e862820@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

There are a bunch of (void *) casts in the code that don't make sense to
me. I think some of these were once necessary because char * was used
in place of void * for some function arguments. And some of these were
probably just copied around without further thought. I went through and
cleaned up most of these. I didn't find any redeeming value in these.
They are just liable to hide actual problems such as incompatible types.
But maybe there are other opinions.

Attachment Content-Type Size
0001-Remove-useless-casts-to-void.patch text/plain 186.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Арсений Косицын 2024-10-29 08:08:37 [PATCH] Fixed creation of empty .log files during log rotation
Previous Message Bertrand Drouvot 2024-10-29 07:59:31 Re: Add isolation test template in injection_points for wait/wakeup/detach