Thread: Compiler warnings
I am seeing the following compiler warnings in CVS HEAD: analyze.c:471: warning: `diff' might be used uninitialized in this functionvacuumlazy.c:220: warning: `diff' might be useduninitialized 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. +
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.
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. +
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