git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c5b7ba4) | patch
Fix compiler warning for MSVC in libpq_pipeline.c
Tue, 6 Apr 2021 21:51:33 +0000 (09:51 +1200)
Tue, 6 Apr 2021 21:51:33 +0000 (09:51 +1200)
commit 3b82d990ab784881153c0f127e4c1211e9b6065c
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
src/test/modules/libpq_pipeline/libpq_pipeline.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /