mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +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:
@ -268,7 +268,7 @@ sql_fn_parser_setup(struct ParseState *pstate, SQLFunctionParseInfoPtr pinfo)
|
||||
pstate->p_post_columnref_hook = sql_fn_post_column_ref;
|
||||
pstate->p_paramref_hook = sql_fn_param_ref;
|
||||
/* no need to use p_coerce_param_hook */
|
||||
pstate->p_ref_hook_state = (void *) pinfo;
|
||||
pstate->p_ref_hook_state = pinfo;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -614,7 +614,7 @@ init_sql_fcache(FunctionCallInfo fcinfo, Oid collation, bool lazyEvalOK)
|
||||
*/
|
||||
fcache = (SQLFunctionCachePtr) palloc0(sizeof(SQLFunctionCache));
|
||||
fcache->fcontext = fcontext;
|
||||
finfo->fn_extra = (void *) fcache;
|
||||
finfo->fn_extra = fcache;
|
||||
|
||||
/*
|
||||
* get the procedure tuple corresponding to the given function Oid
|
||||
|
Reference in New Issue
Block a user