Getting rid of warnings

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Subject: Getting rid of warnings
Date: 2007-01-25 13:44:14
Message-ID: 20070125134414.GF27011@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Attached patch gets rid of most of the remaining warnings on a VC++
build. Summary is:
* A bunch of places that had different const specifyer in the header and
in the body of the function. (contrib/intarray, src/timezone)
* 1.2 and such constants are double and cause warning. Define as floats
(contrib/pg_trgm and contrib/tsearch2)
* HAVE_STRERROR is defined by python, so only conditionally redefine it
in pg_config.h
* NULL function pointer in SSL call cast to the correct pointer type
* ssize_t is defined in pg_config_os.h, remove from libpq-int.h
* Always skip warning 4102 ("label nnn: unreferenced label") caused by
bison.
* Support for ignoring linker warnings, and ignore the warning about
PRIVATE on DllRegisterServer. Can't fix properly because PRIVATE is
not supported by mingw.

Attachment Content-Type Size
vc_warnings.patch text/plain 9.3 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-01-25 14:29:50 Re: Getting rid of warnings
Previous Message Peter Eisentraut 2007-01-25 11:48:38 Re: tsearch in core patch, for inclusion