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/intarray/_int_tool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/intarray/_int_tool.c') diff --git a/contrib/intarray/_int_tool.c b/contrib/intarray/_int_tool.c index bfc55501dbc..79f018d333b 100644 --- a/contrib/intarray/_int_tool.c +++ b/contrib/intarray/_int_tool.c @@ -388,15 +388,15 @@ int_to_intset(int32 n) int compASC(const void *a, const void *b) { - if (*(int4 *) a == *(int4 *) b) + if (*(const int4 *) a == *(const int4 *) b) return 0; - return (*(int4 *) a > *(int4 *) b) ? 1 : -1; + return (*(const int4 *) a > *(const int4 *) b) ? 1 : -1; } int compDESC(const void *a, const void *b) { - if (*(int4 *) a == *(int4 *) b) + if (*(const int4 *) a == *(const int4 *) b) return 0; - return (*(int4 *) a < *(int4 *) b) ? 1 : -1; + return (*(const int4 *) a < *(const int4 *) b) ? 1 : -1; } -- cgit v1.2.3