Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
1.2.0
-
None
-
GCC 4.9.2
Description
Noticed the following warnings when compiling 1.2.0-dev with -Werror. Should these be changed to #ifdef MONGOC_TRACE, or perhaps just wrapped in a defined check (if you actual mean to check for a non-zero value here)?
src/mongoc/mongoc-log.c: In function 'mongoc_log':
|
src/mongoc/mongoc-log.c:84:5: warning: "MONGOC_TRACE" is not defined [-Wundef]
|
#if MONGOC_TRACE
|
^
|
src/mongoc/mongoc-log.c: In function 'mongoc_log':
|
src/mongoc/mongoc-log.c:84:5: warning: "MONGOC_TRACE" is not defined [-Wundef]
|
#if MONGOC_TRACE
|
^
|
tests/test-mongoc-log.c: In function ‘should_run_trace_tests’:
|
tests/test-mongoc-log.c:93:5: warning: "MONGOC_TRACE" is not defined [-Wundef]
|
#if MONGOC_TRACE
|
^
|
tests/TestSuite.c: In function ‘TestSuite_RunTest’:
|
tests/TestSuite.c:390:5: warning: "MONGOC_TRACE" is not defined [-Wundef]
|
#if MONGOC_TRACE
|
^
|
Attachments
Issue Links
- related to
-
CDRIVER-768 Build warning for possibly uninitialized value in collection test
-
- Closed
-