Skip to content

Commit 5ac5202

Browse files
committed
CDRIVER-766: Build warnings for undefined MONGOC_TRACE
1 parent 551d3e6 commit 5ac5202

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/mongoc/mongoc-log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ mongoc_log (mongoc_log_level_t log_level,
8181
mongoc_once(&once, &_mongoc_ensure_mutex_once);
8282

8383
if (!gLogFunc
84-
#if MONGOC_TRACE
84+
#ifdef MONGOC_TRACE
8585
|| (log_level == MONGOC_LOG_LEVEL_TRACE && !gLogTrace)
8686
#endif
8787
) {

tests/TestSuite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ TestSuite_RunTest (TestSuite *suite, /* IN */
387387
*/
388388

389389
/* Tracing is superduper slow */
390-
#if MONGOC_TRACE
390+
#ifdef MONGOC_TRACE
391391
mongoc_log_trace_disable ();
392392
#endif
393393

tests/test-mongoc-log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test_mongoc_log_null (void)
9090

9191
int should_run_trace_tests (void)
9292
{
93-
#if MONGOC_TRACE
93+
#ifdef MONGOC_TRACE
9494
return 1;
9595
#else
9696
return 0;

0 commit comments

Comments
 (0)