mcv compiler warning

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: mcv compiler warning
Date: 2019-07-05 14:13:25
Message-ID: CAMkU=1zc_ovH9NZd_9ovuiEWkF9yX06URUDdXCmgDydf-bqB5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

One of the recent mcv commits introduced an unused variable warning.

mcv.c: In function 'statext_mcv_serialize':
mcv.c:914:7: warning: unused variable 'itemlen' [-Wunused-variable]
int itemlen = ITEM_SIZE(dim);

The attached fixes it.

Cheers,

Jeff

Attachment Content-Type Size
mcv_assert_warning.patch application/octet-stream 527 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2019-07-05 14:15:45 Re: Why vacuum_index_cleanup is needed for TOAST relations?
Previous Message Robert Haas 2019-07-05 14:09:42 Re: POC: Cleaning up orphaned files using undo logs