pgsql: Remove many -Wcast-qual warnings

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove many -Wcast-qual warnings
Date: 2011-09-11 18:56:18
Message-ID: E1R2pCU-0008OF-2H@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1b81c2fe6ee2b26d37610c3d381a87fa17af0a7c

Modified Files
--------------
contrib/btree_gist/btree_cash.c | 14 +++++++-------
contrib/btree_gist/btree_date.c | 14 +++++++-------
contrib/btree_gist/btree_float4.c | 14 +++++++-------
contrib/btree_gist/btree_float8.c | 14 +++++++-------
contrib/btree_gist/btree_inet.c | 14 +++++++-------
contrib/btree_gist/btree_int2.c | 14 +++++++-------
contrib/btree_gist/btree_int4.c | 14 +++++++-------
contrib/btree_gist/btree_int8.c | 14 +++++++-------
contrib/btree_gist/btree_interval.c | 6 +++---
contrib/btree_gist/btree_macaddr.c | 4 ++--
contrib/btree_gist/btree_oid.c | 14 +++++++-------
contrib/btree_gist/btree_time.c | 4 ++--
contrib/btree_gist/btree_ts.c | 4 ++--
contrib/dict_xsyn/dict_xsyn.c | 2 +-
contrib/hstore/hstore_gist.c | 2 +-
contrib/hstore/hstore_io.c | 15 ++++++++-------
contrib/intarray/_int_gist.c | 4 ++--
contrib/intarray/_int_tool.c | 8 ++++----
contrib/ltree/_ltree_gist.c | 2 +-
contrib/pg_stat_statements/pg_stat_statements.c | 4 ++--
contrib/pg_trgm/trgm.h | 2 +-
contrib/pg_trgm/trgm_gist.c | 4 ++--
contrib/pgcrypto/crypt-blowfish.c | 6 +++---
contrib/pgcrypto/crypt-des.c | 4 ++--
contrib/pgcrypto/crypt-gensalt.c | 6 +++---
contrib/pgcrypto/crypt-md5.c | 20 ++++++++++----------
src/backend/commands/analyze.c | 16 ++++++++--------
src/backend/commands/copy.c | 8 ++++----
src/backend/libpq/ip.c | 12 ++++++------
src/backend/libpq/md5.c | 8 ++++----
src/backend/nodes/makefuncs.c | 2 +-
src/backend/nodes/tidbitmap.c | 4 ++--
src/backend/postmaster/autovacuum.c | 4 ++--
src/backend/storage/lmgr/lock.c | 6 +++---
src/backend/tsearch/dict_synonym.c | 2 +-
src/backend/tsearch/dict_thesaurus.c | 8 ++++----
src/backend/tsearch/spell.c | 8 ++++----
src/backend/tsearch/to_tsany.c | 8 ++++----
src/backend/tsearch/ts_utils.c | 2 +-
src/backend/utils/adt/tsgistidx.c | 8 ++++----
src/backend/utils/adt/tsquery_gist.c | 4 ++--
src/backend/utils/adt/tsrank.c | 8 ++++----
src/backend/utils/adt/xml.c | 4 ++--
src/backend/utils/mb/conv.c | 20 ++++++++++----------
src/bin/pg_dump/common.c | 4 ++--
src/bin/pg_dump/pg_backup_archiver.c | 4 ++--
src/bin/pg_dump/pg_backup_files.c | 2 +-
src/bin/pg_dump/pg_backup_tar.c | 6 +++---
src/bin/pg_dump/pg_dump_sort.c | 12 ++++++------
src/bin/psql/mbprint.c | 4 ++--
src/bin/psql/mbprint.h | 4 ++--
src/bin/psql/print.c | 20 ++++++++++----------
src/include/nodes/makefuncs.h | 2 +-
src/interfaces/ecpg/ecpglib/descriptor.c | 20 ++++++++++----------
src/interfaces/ecpg/ecpglib/execute.c | 4 ++--
55 files changed, 219 insertions(+), 218 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-09-11 20:18:24 pgsql: Remove no-longer-used variable.
Previous Message Tom Lane 2011-09-11 17:18:42 pgsql: Fix permissions on pg_largeobject_metadata.h in 9.0 branch.