Skip to content

Commit 3b82d99

Browse files
committed
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
1 parent c5b7ba4 commit 3b82d99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/modules/libpq_pipeline/libpq_pipeline.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ const char *const progname = "libpq_pipeline";
3535
char *tracefile = NULL; /* path to PQtrace() file */
3636

3737

38-
#define DEBUG
39-
#ifdef DEBUG
38+
#ifdef DEBUG_OUTPUT
4039
#define pg_debug(...) do { fprintf(stderr, __VA_ARGS__); } while (0)
4140
#else
4241
#define pg_debug(...)

0 commit comments

Comments
 (0)