Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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.

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group