| From: | David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
|---|---|
| To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
| Cc: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Compiler warning in costsize.c |
| Date: | 2017-04-04 10:03:22 |
| Message-ID: | CAKJS1f8BVBHMQJ2ijUmhSjE_sOM5_XNBXhpUntWqHx=1egR1FQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 4 April 2017 at 16:22, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> wrote:
> 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 for writing the patch.
I wondering if it would be worth simplifying it a little to get rid of
the double #ifdefs, as per attached.
--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
| Attachment | Content-Type | Size |
|---|---|---|
| costsize-fix-warning_drowley.patch | application/octet-stream | 1.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stas Kelvich | 2017-04-04 10:06:13 | Re: logical decoding of two-phase transactions |
| Previous Message | Masahiko Sawada | 2017-04-04 09:41:55 | Re: Some never executed code regarding the table sync worker |