mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +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:
@ -35,34 +35,34 @@ Datum gbt_oid_same(PG_FUNCTION_ARGS);
|
||||
static bool
|
||||
gbt_oidgt(const void *a, const void *b)
|
||||
{
|
||||
return (*((Oid *) a) > *((Oid *) b));
|
||||
return (*((const Oid *) a) > *((const Oid *) b));
|
||||
}
|
||||
static bool
|
||||
gbt_oidge(const void *a, const void *b)
|
||||
{
|
||||
return (*((Oid *) a) >= *((Oid *) b));
|
||||
return (*((const Oid *) a) >= *((const Oid *) b));
|
||||
}
|
||||
static bool
|
||||
gbt_oideq(const void *a, const void *b)
|
||||
{
|
||||
return (*((Oid *) a) == *((Oid *) b));
|
||||
return (*((const Oid *) a) == *((const Oid *) b));
|
||||
}
|
||||
static bool
|
||||
gbt_oidle(const void *a, const void *b)
|
||||
{
|
||||
return (*((Oid *) a) <= *((Oid *) b));
|
||||
return (*((const Oid *) a) <= *((const Oid *) b));
|
||||
}
|
||||
static bool
|
||||
gbt_oidlt(const void *a, const void *b)
|
||||
{
|
||||
return (*((Oid *) a) < *((Oid *) b));
|
||||
return (*((const Oid *) a) < *((const Oid *) b));
|
||||
}
|
||||
|
||||
static int
|
||||
gbt_oidkey_cmp(const void *a, const void *b)
|
||||
{
|
||||
oidKEY *ia = (oidKEY *) (((Nsrt *) a)->t);
|
||||
oidKEY *ib = (oidKEY *) (((Nsrt *) b)->t);
|
||||
oidKEY *ia = (oidKEY *) (((const Nsrt *) a)->t);
|
||||
oidKEY *ib = (oidKEY *) (((const Nsrt *) b)->t);
|
||||
|
||||
if (ia->lower == ib->lower)
|
||||
{
|
||||
|
Reference in New Issue
Block a user