From 5259b90dac7201c2e2f80ff5e1c25050e11d4035 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Wed, 23 Dec 2020 15:18:54 -0800 Subject: Resolve compiler warnings The buildkite syscall tests start with a lot of C++ warnings. This cleans that up a little. --- test/syscalls/linux/proc_net_unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syscalls/linux/proc_net_unix.cc') diff --git a/test/syscalls/linux/proc_net_unix.cc b/test/syscalls/linux/proc_net_unix.cc index a63067586..662c6feb2 100644 --- a/test/syscalls/linux/proc_net_unix.cc +++ b/test/syscalls/linux/proc_net_unix.cc @@ -181,7 +181,7 @@ PosixErrorOr> ProcNetUnixEntries() { // Returns true on match, and sets 'match' to point to the matching entry. bool FindBy(std::vector entries, UnixEntry* match, std::function predicate) { - for (int i = 0; i < entries.size(); ++i) { + for (long unsigned int i = 0; i < entries.size(); ++i) { if (predicate(entries[i])) { *match = entries[i]; return true; -- cgit v1.2.3