Skip to content
Snippets Groups Projects
Commit e47ea278 authored by Scott Graham's avatar Scott Graham
Browse files

[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
parent e8167d43
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment