Compiler warning in costsize.c - Mailing list pgsql-hackers

From Michael Paquier
Subject Compiler warning in costsize.c
Date
Msg-id CAB7nPqTkW=b_1JVvYWd_G0WrKOT+4uFQjGGrv8osQbUZzXGXdA@mail.gmail.com
Whole thread Raw
Responses Re: Compiler warning in costsize.c  (David Rowley <david.rowley@2ndquadrant.com>)
Re: Compiler warning in costsize.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi all,

In builds where USE_ASSERT_CHECKING is not enabled, costsize.c can
generate warnings. Here is for example with MSVC:
  src/backend/optimizer/path/costsize.c(4520): warning C4101: 'rte' : unreferen
ced local variable [C:\Users\ioltas\git\postgres\postgres.vcxproj]
  src/backend/optimizer/path/costsize.c(4640): warning C4101: 'rte' : unreferen
ced local variable [C:\Users\ioltas\git\postgres\postgres.vcxproj]

a9c074ba7 has done an effort, but a bit more is needed as the attached.

Thanks,
-- 
Michael

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Instead of DROP function use UPDATE pg_proc in anupgrade extension script
Next
From: Pavan Deolasee
Date:
Subject: Re: Patch: Write Amplification Reduction Method (WARM)