[gn][banjo] Fix some warnings in banjo gn build
[22816->1012/23885 ~58] CXX host-x64-linux-clang/obj/system/host/banjo/formatter/banjo-format.main.cpp.o ../system/host/banjo/formatter/main.cpp:75:16: warning: comparison of integers of different signs: 'int' and 'std::__2::vector<std::__2::basic_string<char>, std::__2::allocator<std::__2::basic_string<char> > >::size_type' (aka 'unsigned long') [-Wsign-compare] while (pos < args.size() && args[pos] != "--" && args[pos].find("-") == 0) { ~~~ ^ ~~~~~~~~~~~ ../system/host/banjo/formatter/main.cpp:87:13: warning: comparison of integers of different signs: 'int' and 'std::__2::vector<std::__2::basic_string<char>, std::__2::allocator<std::__2::basic_string<char> > >::size_type' (aka 'unsigned long') [-Wsign-compare] if (pos >= args.size()) { ~~~ ^ ~~~~~~~~~~~ ../system/host/banjo/formatter/main.cpp:95:16: warning: comparison of integers of different signs: 'int' and 'std::__2::vector<std::__2::basic_string<char>, std::__2::allocator<std::__2::basic_string<char> > >::size_type' (aka 'unsigned long') [-Wsign-compare] for (; pos < args.size(); pos++) { ~~~ ^ ~~~~~~~~~~~ 3 warnings generated. BLD-361 #comment [gn][banjo] Fix some warnings in banjo gn build ZX-3415 #comment [gn][banjo] Fix some warnings in banjo gn build Test: CQ Change-Id: If31eaabfd01fcb0502db9f1bdf20a5794ad72730
Loading
Please register or sign in to comment