fix some lint warnings

This commit is contained in:
Kurtis Rader 2017-06-14 22:23:53 -07:00
parent ffdabace5e
commit d910b7af7d
2 changed files with 2 additions and 2 deletions

View File

@ -1762,7 +1762,7 @@ struct pager_layout_testcase_t {
wcstring text = sd.line(0).to_string(); wcstring text = sd.line(0).to_string();
if (text != expected) { if (text != expected) {
fwprintf(stderr, L"width %zu got %d<%ls>, expected %d<%ls>\n", this->width, fwprintf(stderr, L"width %zu got %zu<%ls>, expected %zu<%ls>\n", this->width,
text.length(), text.c_str(), expected.length(), expected.c_str()); text.length(), text.c_str(), expected.length(), expected.c_str());
for (size_t i = 0; i < std::max(text.length(), expected.length()); i++) { for (size_t i = 0; i < std::max(text.length(), expected.length()); i++) {
fwprintf(stderr, L"i %zu got <%lx> expected <%lx>\n", i, fwprintf(stderr, L"i %zu got <%lx> expected <%lx>\n", i,

View File

@ -774,7 +774,7 @@ parse_execution_result_t parse_execution_context_t::handle_command_not_found(
this->report_error(statement_node, msg, eval_cmd.c_str()); this->report_error(statement_node, msg, eval_cmd.c_str());
} else if (err_code != ENOENT) { } else if (err_code != ENOENT) {
this->report_error(statement_node, _(L"The file '%ls' is not executable by this user"), this->report_error(statement_node, _(L"The file '%ls' is not executable by this user"),
cmd ? cmd : L"UNKNOWN"); cmd);
} else { } else {
// Handle unrecognized commands with standard command not found handler that can make better // Handle unrecognized commands with standard command not found handler that can make better
// error messages. // error messages.