mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
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.
This commit is contained in:
contrib
btree_gist
btree_cash.cbtree_date.cbtree_float4.cbtree_float8.cbtree_inet.cbtree_int2.cbtree_int4.cbtree_int8.cbtree_interval.cbtree_macaddr.cbtree_oid.cbtree_time.cbtree_ts.c
dict_xsyn
hstore
intarray
ltree
pg_stat_statements
pg_trgm
pgcrypto
src
backend
commands
libpq
nodes
postmaster
storage
lmgr
tsearch
utils
bin
pg_dump
psql
include
nodes
interfaces
ecpg
ecpglib
@ -156,10 +156,10 @@ typedef struct
|
||||
static int
|
||||
comparecost(const void *a, const void *b)
|
||||
{
|
||||
if (((SPLITCOST *) a)->cost == ((SPLITCOST *) b)->cost)
|
||||
if (((const SPLITCOST *) a)->cost == ((const SPLITCOST *) b)->cost)
|
||||
return 0;
|
||||
else
|
||||
return (((SPLITCOST *) a)->cost > ((SPLITCOST *) b)->cost) ? 1 : -1;
|
||||
return (((const SPLITCOST *) a)->cost > ((const SPLITCOST *) b)->cost) ? 1 : -1;
|
||||
}
|
||||
|
||||
#define WISH_F(a,b,c) (double)( -(double)(((a)-(b))*((a)-(b))*((a)-(b)))*(c) )
|
||||
|
Reference in New Issue
Block a user