mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix ambiguous reference to WARNING when using miniglog.
- When compiling on Clang on OS X with MINIGLOG enabled, name lookup finds two ambiguous definitions of WARNING, one in the global namespace and one in the google namespace, both defined in the miniglog version of logging.h. Change-Id: I6f1ad7d2750e1ed20ec1ba4574aab599086431df
This commit is contained in:
@@ -155,7 +155,7 @@ TEST(LevenbergMarquardtStrategy, CorrectDiagonalToLinearSolver) {
|
||||
EXPECT_CALL(log, Log(GLOG_WARNING, _,
|
||||
HasSubstr("Failed to compute a step")));
|
||||
#else
|
||||
EXPECT_CALL(log, Log(WARNING, _,
|
||||
EXPECT_CALL(log, Log(google::WARNING, _,
|
||||
HasSubstr("Failed to compute a step")));
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user