diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-09-11 21:54:32 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-09-11 21:54:32 +0300 |
commit | 1b81c2fe6ee2b26d37610c3d381a87fa17af0a7c (patch) | |
tree | 09075f19d47fd81df20beb96e27e0f21ad2a0729 /src/backend/utils/adt/tsgistidx.c | |
parent | 02bca4f35164dd1873eab9b8e6167e42a79157c4 (diff) | |
download | postgresql-1b81c2fe6ee2b26d37610c3d381a87fa17af0a7c.tar.gz postgresql-1b81c2fe6ee2b26d37610c3d381a87fa17af0a7c.zip |
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 'src/backend/utils/adt/tsgistidx.c')
-rw-r--r-- | src/backend/utils/adt/tsgistidx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/tsgistidx.c b/src/backend/utils/adt/tsgistidx.c index 1ac2b17237f..72f4a784d27 100644 --- a/src/backend/utils/adt/tsgistidx.c +++ b/src/backend/utils/adt/tsgistidx.c @@ -131,8 +131,8 @@ gtsvectorout(PG_FUNCTION_ARGS) static int compareint(const void *va, const void *vb) { - int4 a = *((int4 *) va); - int4 b = *((int4 *) vb); + int4 a = *((const int4 *) va); + int4 b = *((const int4 *) vb); if (a == b) return 0; @@ -593,8 +593,8 @@ typedef struct static int comparecost(const void *va, const void *vb) { - SPLITCOST *a = (SPLITCOST *) va; - SPLITCOST *b = (SPLITCOST *) vb; + const SPLITCOST *a = (const SPLITCOST *) va; + const SPLITCOST *b = (const SPLITCOST *) vb; if (a->cost == b->cost) return 0; |