pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Saito <z-saito@guitar.ocn.ne.jp>
To: pgsql-odbc@postgresql.org
To: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: Compiler warnings in psqloodbc 08.03.0200
Date: Tue, 16 Sep 2008 23:45:36 +0900
Message-ID: <009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D> (raw)
References: <27825.1221570772@sss.pgh.pa.us>

Hi.

Surely, we have not made offer sufficient about x86_64.... However, The check of operation
was performed by the temporary rental machine. Moreover, there is also a situation of taking
time in the check of the present BIGENDIAN. Then, late work may be blamed....
Anyway, In order to avoid a problem, to be warning should clear.

BTW, FreeBSD x86 is this.
inet% gmake socket.o
if 
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include -I/usr/local/pgsql/include -Wall -g -O2 
 -MT socket.o -MD -MP -MF ".deps/socket.Tpo" -c -o socket.o socket.c; \
then mv -f ".deps/socket.Tpo" ".deps/socket.Po"; else rm -f ".deps/socket.Tpo"; exit 1; fi
socket.c: In function `SOCK_wait_for_ready':
socket.c:468: warning: 'no_timeout' might be used uninitialized in this function

Regards,
Hiroshi Saito

----- Original Message ----- 
From: "Tom Lane" <tgl@sss.pgh.pa.us>


>I wrote:
>> BTW, isn't anyone paying attention to compiler warnings in this code base?
>
> To be concrete, attached is a list of warnings I see when building .0200
> using gcc -Wall on an x86_64 Fedora 9 machine.  If I were in charge of
> this project I'd insist on every one of these being cleaned up --- they
> are at least evidence of sloppy programming, and a significant fraction
> look like they mean certain crashes if the code ever gets executed.
>
> BTW, I've omitted 261 "pointer targets differ in signedness" warnings...
> those are probably not interesting, but I'd still recommend cleaning
> them up, if only so that more important warnings don't get lost in the
> noise.  The core Postgres project has maintained a zero-tolerance policy
> on gcc warnings for years, and I think it's served us well.
>
> regards, tom lane




view thread (6+ messages)  latest in thread

Message-ID: <009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D>
Permalink:  ../009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D/
Also on:    postgresql.org/message-id/009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: z-saito@guitar.ocn.ne.jp, tgl@sss.pgh.pa.us
  Subject: Re: Compiler warnings in psqloodbc 08.03.0200
  In-Reply-To: <009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D>
  References: <27825.1221570772@sss.pgh.pa.us> <009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox