From 1b81c2fe6ee2b26d37610c3d381a87fa17af0a7c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 11 Sep 2011 21:54:32 +0300 Subject: Remove many -Wcast-qual warnings This addresses only those cases that are easy to fix by adding or moving a const qualifier or removing an unnecessary cast. There are many more complicated cases remaining. --- contrib/ltree/_ltree_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/ltree/_ltree_gist.c') diff --git a/contrib/ltree/_ltree_gist.c b/contrib/ltree/_ltree_gist.c index f03f6332906..8afc2bd5407 100644 --- a/contrib/ltree/_ltree_gist.c +++ b/contrib/ltree/_ltree_gist.c @@ -280,7 +280,7 @@ typedef struct static int comparecost(const void *a, const void *b) { - return ((SPLITCOST *) a)->cost - ((SPLITCOST *) b)->cost; + return ((const SPLITCOST *) a)->cost - ((const SPLITCOST *) b)->cost; } Datum -- cgit v1.2.3