mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Remove useless casts to (void *)
Many of them just seem to have been copied around for no real reason. Their presence causes (small) risks of hiding actual type mismatches or silently discarding qualifiers Discussion: https://www.postgresql.org/message-id/flat/461ea37c-8b58-43b4-9736-52884e862820@eisentraut.org
This commit is contained in:
@@ -257,7 +257,7 @@ jsonb_from_cstring(char *json, int len, bool unique_keys, Node *escontext)
|
||||
|
||||
state.unique_keys = unique_keys;
|
||||
state.escontext = escontext;
|
||||
sem.semstate = (void *) &state;
|
||||
sem.semstate = &state;
|
||||
|
||||
sem.object_start = jsonb_in_object_start;
|
||||
sem.array_start = jsonb_in_array_start;
|
||||
@@ -758,7 +758,7 @@ datum_to_jsonb_internal(Datum val, bool is_null, JsonbInState *result,
|
||||
|
||||
memset(&sem, 0, sizeof(sem));
|
||||
|
||||
sem.semstate = (void *) result;
|
||||
sem.semstate = result;
|
||||
|
||||
sem.object_start = jsonb_in_object_start;
|
||||
sem.array_start = jsonb_in_array_start;
|
||||
|
||||
Reference in New Issue
Block a user