From cbdf75bf8053f88bbae6b307f34ab057424a370f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 9 Sep 2021 07:58:12 +0200 Subject: Remove useless casts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Casting the argument of strVal() to (Value *) is useless, since strVal() already does that. Most code didn't do that anyway; this was apparently just a style that snuck into certain files. Reviewed-by: Dagfinn Ilmari Mannsåker Reviewed-by: Kyotaro Horiguchi Discussion: https://www.postgresql.org/message-id/flat/5ba6bc5b-3f95-04f2-2419-f8ddb4c046fb@enterprisedb.com --- src/backend/commands/statscmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/commands/statscmds.c') diff --git a/src/backend/commands/statscmds.c b/src/backend/commands/statscmds.c index 59369f87362..78917844dee 100644 --- a/src/backend/commands/statscmds.c +++ b/src/backend/commands/statscmds.c @@ -335,7 +335,7 @@ CreateStatistics(CreateStatsStmt *stmt) build_mcv = false; foreach(cell, stmt->stat_types) { - char *type = strVal((Value *) lfirst(cell)); + char *type = strVal(lfirst(cell)); if (strcmp(type, "ndistinct") == 0) { -- cgit v1.2.3