mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
This commit is contained in:
@ -739,7 +739,7 @@ typeStringToTypeName(const char *str)
|
||||
* Setup error traceback support in case of ereport() during parse
|
||||
*/
|
||||
ptserrcontext.callback = pts_error_callback;
|
||||
ptserrcontext.arg = (void *) str;
|
||||
ptserrcontext.arg = unconstify(char *, str);
|
||||
ptserrcontext.previous = error_context_stack;
|
||||
error_context_stack = &ptserrcontext;
|
||||
|
||||
|
Reference in New Issue
Block a user