Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 40EF064FCC6 for ; Tue, 16 Sep 2008 11:45:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54847-04 for ; Tue, 16 Sep 2008 11:45:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.guitar.ocn.ne.jp (guitar.ocn.ne.jp [122.28.30.209]) by postgresql.org (Postfix) with ESMTP id 6520464FCC3 for ; Tue, 16 Sep 2008 11:45:41 -0300 (ADT) Received: from IBMC9A0F63B40D (p5023-ipadfx01funabasi.chiba.ocn.ne.jp [218.43.105.23]) by smtp.guitar.ocn.ne.jp (Postfix) with SMTP id 81AB825E2; Tue, 16 Sep 2008 23:45:37 +0900 (JST) Message-ID: <009f01c9180a$e154a410$0e01a8c0@IBMC9A0F63B40D> From: "Hiroshi Saito" To: , "Tom Lane" References: <27825.1221570772@sss.pgh.pa.us> Subject: Re: Compiler warnings in psqloodbc 08.03.0200 Date: Tue, 16 Sep 2008 23:45:36 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200809/15 X-Sequence-Number: 9608 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" >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