You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clang appears to emit some warnings about the flower source code:
$ cmake .
$ make...[ 31%] Linking CXX static library libflower_switchboard_lib.a[ 31%] Built target flower_switchboard_libScanning dependencies of target gtest_main[ 34%] Building CXX object contrib/googletest-release-1.8.0/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o[ 36%] Linking CXX static library libgtest_main.a[ 36%] Built target gtest_mainScanning dependencies of target flower_unittests[ 38%] Building CXX object CMakeFiles/flower_unittests.dir/flower/switchboard/handle_test.cc.oIn file included from /flower/flower/switchboard/handle_test.cc:18:0:/flower/flower/switchboard/worker_pool.h:19:7: warning: 'flower::switchboard::WorkerPool' has a field 'flower::switchboard::WorkerPool::logger_' whose type uses the anonymous namespace [-Wsubobject-linkage] class WorkerPool { ^~~~~~~~~~
Using Clang v4.0, on Ubuntu Bionic Beaver.
The text was updated successfully, but these errors were encountered:
diff --git a/flower/util/logger.h b/flower/util/logger.h
index ac153f7..15bc75f 100644
--- a/flower/util/logger.h
+++ b/flower/util/logger.h
@@ -13,7 +13,6 @@
namespace flower {
namespace util {
-namespace {
// Log entry that is in the process of being written. This class
// serializes output to the stream and also ensures all entries have a
@@ -51,7 +50,6 @@ class Logger {
std::streambuf* streambuf_;
};
-} // namespace
} // namespace util
} // namespace flower
Can you confirm that this fixed the warning you're seeing?
Clang appears to emit some warnings about the flower source code:
Using Clang v4.0, on Ubuntu Bionic Beaver.
The text was updated successfully, but these errors were encountered: