Content-Length: 260798 | pFad | http://github.com/postgrespro/postgres/commit/3b82d990ab784881153c0f127e4c1211e9b6065c

03 Fix compiler warning for MSVC in libpq_pipeline.c · postgrespro/postgres@3b82d99 · GitHub
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

Lines changed: 1 addition & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3b82d990ab784881153c0f127e4c1211e9b6065c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy