Skip to content

Commit 33c6743

Browse files
committed
base: cvd: cuttlefish: host: porting code to clang 19.1.0
clang 19.1.0 checks the code stricter. We need to fix the errors reported by the compiler. Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
1 parent bd38529 commit 33c6743

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

base/cvd/cuttlefish/host/commands/tcp_connector/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ SharedFD OpenSocket(int port) {
4848
}
4949
LOG(ERROR) << "Failed to open socket: " << fd->StrError();
5050
// Wait a little and try again
51+
lock.unlock();
5152
sleep(1);
53+
lock.lock();
5254
}
5355
}
5456

@@ -62,7 +64,9 @@ SharedFD OpenSocket(const std::string& path) {
6264
}
6365
LOG(ERROR) << "Failed to open socket: " << fd->StrError();
6466
// Wait a little and try again
67+
lock.unlock();
6568
sleep(1);
69+
lock.lock();
6670
}
6771
}
6872

base/cvd/cuttlefish/host/libs/config/cuttlefish_config_instance.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <cctype>
2323
#include <fstream>
2424
#include <optional>
25-
#include <ostream>
2625
#include <string>
2726
#include <utility>
2827
#include <vector>

0 commit comments

Comments
 (0)