summaryrefslogtreecommitdiff
path: root/contrib/ltree/_ltree_gist.c
diff options
context:
space:
mode:
authorPeter Eisentraut2011-09-11 18:54:32 +0000
committerPeter Eisentraut2011-09-11 18:54:32 +0000
commit1b81c2fe6ee2b26d37610c3d381a87fa17af0a7c (patch)
tree09075f19d47fd81df20beb96e27e0f21ad2a0729 /contrib/ltree/_ltree_gist.c
parent02bca4f35164dd1873eab9b8e6167e42a79157c4 (diff)
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.
Diffstat (limited to 'contrib/ltree/_ltree_gist.c')
-rw-r--r--contrib/ltree/_ltree_gist.c2
1 files changed, 1 insertions, 1 deletions
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