Compiler warnings

Started by Bruce Momjianabout 19 years ago4 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

I am seeing the following compiler warnings in CVS HEAD:

analyze.c:471: warning: `diff' might be used uninitialized in this function
vacuumlazy.c:220: warning: `diff' might be used uninitialized in this function

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Bruce Momjian (#1)
Re: Compiler warnings

Bruce Momjian wrote:

I am seeing the following compiler warnings in CVS HEAD:

analyze.c:471: warning: `diff' might be used uninitialized in this function
vacuumlazy.c:220: warning: `diff' might be used uninitialized in this function

Are you using too old a compiler? Mine does not complain
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

I'll fix them anyway.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#3Bruce Momjian
bruce@momjian.us
In reply to: Alvaro Herrera (#2)
Re: Compiler warnings

Alvaro Herrera wrote:

Bruce Momjian wrote:

I am seeing the following compiler warnings in CVS HEAD:

analyze.c:471: warning: `diff' might be used uninitialized in this function
vacuumlazy.c:220: warning: `diff' might be used uninitialized in this function

Are you using too old a compiler? Mine does not complain
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Probably:

gcc version 2.95.3 20010315 (release)

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#4Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Bruce Momjian (#3)
Re: Compiler warnings

Bruce Momjian wrote:

Alvaro Herrera wrote:

Bruce Momjian wrote:

I am seeing the following compiler warnings in CVS HEAD:

analyze.c:471: warning: `diff' might be used uninitialized in this function
vacuumlazy.c:220: warning: `diff' might be used uninitialized in this function

Are you using too old a compiler? Mine does not complain
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Probably:

gcc version 2.95.3 20010315 (release)

The only thing older than that, I think, is Manfred Koizar's bike.

http://archives.postgresql.org/pgsql-patches/2004-05/msg00326.php

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support