Suppress a -Wsign-compare warning
We already know that the filename length is >= 1.
@@ -442,7 +442,8 @@ bool OutputJar::AddJar(int jar_path_index) {
// Add any missing parent directory entries (first) if requested.
if (options_->add_missing_directories) {
// Ignore very last character in case this entry is a directory itself.
- for (size_t pos = 0; pos < file_name_length - 1; ++pos) {
+ for (size_t pos = 0; pos < static_cast<size_t>(file_name_length - 1);
+ ++pos) {
if (file_name[pos] == '/') {
std::string dir(file_name, 0, pos + 1);
if (NewEntry(dir)) {
