diff options
author | David Rowley <drowley@postgresql.org> | 2021-04-07 09:51:33 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2021-04-07 09:51:33 +1200 |
commit | 3b82d990ab784881153c0f127e4c1211e9b6065c (patch) | |
tree | 060f6e25a690b091735054772513c6f56323ee16 | |
parent | c5b7ba4e67aeb5d6f824b74f94114d99ed6e42b7 (diff) | |
download | postgresql-3b82d990ab784881153c0f127e4c1211e9b6065c.tar.gz postgresql-3b82d990ab784881153c0f127e4c1211e9b6065c.zip |
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
-rw-r--r-- | src/test/modules/libpq_pipeline/libpq_pipeline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/modules/libpq_pipeline/libpq_pipeline.c b/src/test/modules/libpq_pipeline/libpq_pipeline.c index 95ffaae9f67..e4bba103ed1 100644 --- a/src/test/modules/libpq_pipeline/libpq_pipeline.c +++ b/src/test/modules/libpq_pipeline/libpq_pipeline.c @@ -35,8 +35,7 @@ const char *const progname = "libpq_pipeline"; char *tracefile = NULL; /* path to PQtrace() file */ -#define DEBUG -#ifdef DEBUG +#ifdef DEBUG_OUTPUT #define pg_debug(...) do { fprintf(stderr, __VA_ARGS__); } while (0) #else #define pg_debug(...) |