pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix compiler warning for MSVC in libpq_pipeline.c
Date: Tue, 06 Apr 2021 21:51:54 +0000
Message-ID: <E1lTtc2-0001TI-Bt@gemulon.postgresql.org> (raw)

Fix compiler warning for MSVC in libpq_pipeline.c

DEBUG was already defined by the MSVC toolchain for "Debug" builds. On
these systems the unconditional #define DEBUG was causing a 'DEBUG': macro
redefinition warning.

Here we rename DEBUG to DEBUG_OUPUT and also get rid of the #define which
defined this constant.  This appears to have been left in the code by
mistake.

Discussion: https://postgr.es/m/CAApHDvqTTgDm38s4HRj03nhzhzQ1oMOj-RXFUB1pE6Bj07jyuQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b82d990ab784881153c0f127e4c1211e9b6065c

Modified Files
--------------
src/test/modules/libpq_pipeline/libpq_pipeline.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)



Message-ID: <E1lTtc2-0001TI-Bt@gemulon.postgresql.org>
Permalink:  ../E1lTtc2-0001TI-Bt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lTtc2-0001TI-Bt@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Fix compiler warning for MSVC in libpq_pipeline.c
  In-Reply-To: <E1lTtc2-0001TI-Bt@gemulon.postgresql.org>
  References: <E1lTtc2-0001TI-Bt@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox